999aad8637b167afe45b7cfb7a37cf1bbb86ad9f
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / access / client / AccessClientUtil.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.cluster.access.client;
9
10 import akka.actor.ActorRef;
11 import akka.actor.ActorSystem;
12 import org.opendaylight.controller.cluster.access.concepts.ClientIdentifier;
13
14 /**
15  * Util class to access package private members in cds-access-client for test purposes.
16  */
17 public class AccessClientUtil {
18
19     public static ClientActorContext createClientActorContext(final ActorSystem system, final ActorRef actor,
20                                                               final ClientIdentifier id, final String persistenceId) {
21         return new ClientActorContext(actor, system.scheduler(), system.dispatcher(), persistenceId, id);
22     }
23
24 }