X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatabroker%2FTestClientBackedDataStore.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatabroker%2FTestClientBackedDataStore.java;h=9b790ce5c86a7555cafd8da547d857bb57bba4be;hp=919e4d82c7cac901b4697b11a428f278839dff10;hb=9b319f491af1c65705b69e8a182aab5006a2f959;hpb=ce805eec9919fd724ffc6ac40975f0c3314ba9d8 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/TestClientBackedDataStore.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/TestClientBackedDataStore.java index 919e4d82c7..9b790ce5c8 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/TestClientBackedDataStore.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/TestClientBackedDataStore.java @@ -12,13 +12,17 @@ import org.opendaylight.controller.cluster.access.concepts.ClientIdentifier; import org.opendaylight.controller.cluster.databroker.actors.dds.DataStoreClient; import org.opendaylight.controller.cluster.datastore.ClusterWrapper; import org.opendaylight.controller.cluster.datastore.DatastoreContextFactory; +import org.opendaylight.controller.cluster.datastore.LocalShardStore; import org.opendaylight.controller.cluster.datastore.config.Configuration; import org.opendaylight.controller.cluster.datastore.persisted.DatastoreSnapshot; import org.opendaylight.controller.cluster.datastore.shardmanager.AbstractShardManagerCreator; import org.opendaylight.controller.cluster.datastore.shardmanager.TestShardManager; +import org.opendaylight.controller.cluster.datastore.shardmanager.TestShardManager.GetLocalShards; +import org.opendaylight.controller.cluster.datastore.shardmanager.TestShardManager.GetLocalShardsReply; import org.opendaylight.controller.cluster.datastore.utils.ActorUtils; -public class TestClientBackedDataStore extends ClientBackedDataStore { +public class TestClientBackedDataStore extends ClientBackedDataStore implements LocalShardStore { + public TestClientBackedDataStore(final ActorSystem actorSystem, final ClusterWrapper cluster, final Configuration configuration, final DatastoreContextFactory datastoreContextFactory, @@ -35,4 +39,10 @@ public class TestClientBackedDataStore extends ClientBackedDataStore { protected AbstractShardManagerCreator getShardManagerCreator() { return new TestShardManager.TestShardManagerCreator(); } + + @Override + public GetLocalShardsReply getLocalShards() { + final ActorUtils utils = getActorUtils(); + return (GetLocalShardsReply) utils.executeOperation(utils.getShardManager(), GetLocalShards.INSTANCE); + } }