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=f42225de5a1c5af8f1c60fef23395def20c80dc2;hp=8c4f6b3456c63a8db9697cf1c9a277dbae9eb01b;hpb=c796596b5c46b5203c30b143e6282662e66c5642;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 8c4f6b3456..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.sal.core.spi.data.DOMStoreTransactionChain; -import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTree; +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.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 @@ -35,17 +35,19 @@ final class TransactionContextFactory extends AbstractTransactionContextFactory< } @Override - protected LocalTransactionFactoryImpl factoryForShard(final String shardName, final ActorSelection shardLeader, final DataTree dataTree) { - return new LocalTransactionFactoryImpl(getActorContext(), shardLeader, dataTree); + protected LocalTransactionFactoryImpl factoryForShard(final String shardName, final ActorSelection shardLeader, + 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 - protected void onTransactionReady(final TransactionIdentifier transaction, final Collection> cohortFutures) { + protected void onTransactionReady(final TransactionIdentifier transaction, + final Collection> cohortFutures) { // Transactions are disconnected, this is a no-op }