X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FTransactionContextFactory.java;h=3944b04ef5a96ecb8561cc7e694fe4482b98a36d;hb=546cd1fd100dbaa36908b22c2f422320dbd8c4b2;hp=56e8e6e70b049d03dc45fe2af3d84fb578075d20;hpb=f41c5e6e6f6e10b36b1e4b1992877e38e718c8fb;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TransactionContextFactory.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TransactionContextFactory.java index 56e8e6e70b..3944b04ef5 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TransactionContextFactory.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TransactionContextFactory.java @@ -14,9 +14,9 @@ import org.opendaylight.controller.cluster.access.concepts.ClientIdentifier; import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier; import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier; import org.opendaylight.controller.cluster.datastore.messages.PrimaryShardInfo; -import org.opendaylight.controller.cluster.datastore.utils.ActorContext; +import org.opendaylight.controller.cluster.datastore.utils.ActorUtils; import org.opendaylight.mdsal.dom.spi.store.DOMStoreTransactionChain; -import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTree; +import org.opendaylight.yangtools.yang.data.api.schema.tree.ReadOnlyDataTree; import scala.concurrent.Future; /** @@ -26,8 +26,8 @@ import scala.concurrent.Future; final class TransactionContextFactory extends AbstractTransactionContextFactory { private final AtomicLong nextHistory = new AtomicLong(1); - TransactionContextFactory(final ActorContext actorContext, final ClientIdentifier clientId) { - super(actorContext, new LocalHistoryIdentifier(clientId, 0)); + TransactionContextFactory(final ActorUtils actorUtils, final ClientIdentifier clientId) { + super(actorUtils, new LocalHistoryIdentifier(clientId, 0)); } @Override @@ -36,13 +36,13 @@ final class TransactionContextFactory extends AbstractTransactionContextFactory< @Override protected LocalTransactionFactoryImpl factoryForShard(final String shardName, final ActorSelection shardLeader, - final DataTree dataTree) { - return new LocalTransactionFactoryImpl(getActorContext(), shardLeader, dataTree); + final ReadOnlyDataTree dataTree) { + return new LocalTransactionFactoryImpl(getActorUtils(), shardLeader, dataTree); } @Override protected Future findPrimaryShard(final String shardName, TransactionIdentifier txId) { - return getActorContext().findPrimaryShardAsync(shardName); + return getActorUtils().findPrimaryShardAsync(shardName); } @Override