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%2FShardDataTreeTransactionParent.java;h=0db6f083ac655908ae57de374e348d480d430d60;hb=55a9b9f42a14c56060f74b38f84d444c0fbfecc4;hp=2b0b74d02c3b9209a7d166a894b3b15cc0953aba;hpb=2634ed7138a343f051ff6452ccc7edd3abfc0c3a;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTreeTransactionParent.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTreeTransactionParent.java index 2b0b74d02c..0db6f083ac 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTreeTransactionParent.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTreeTransactionParent.java @@ -7,17 +7,23 @@ */ package org.opendaylight.controller.cluster.datastore; +import java.util.Optional; +import java.util.SortedSet; import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier; import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification; abstract class ShardDataTreeTransactionParent { - abstract void abortTransaction(AbstractShardDataTreeTransaction transaction, Runnable callback); + abstract void abortFromTransactionActor(AbstractShardDataTreeTransaction transaction); - abstract void purgeTransaction(TransactionIdentifier id, Runnable callback); + abstract void abortTransaction(AbstractShardDataTreeTransaction transaction, Runnable callback); - abstract ShardDataTreeCohort finishTransaction(ReadWriteShardDataTreeTransaction transaction); + abstract ShardDataTreeCohort finishTransaction(ReadWriteShardDataTreeTransaction transaction, + Optional> participatingShardNames); - abstract ShardDataTreeCohort createReadyCohort(TransactionIdentifier id, DataTreeModification mod); + abstract ShardDataTreeCohort createReadyCohort(TransactionIdentifier txId, DataTreeModification mod, + Optional> participatingShardNames); + abstract ShardDataTreeCohort createFailedCohort(TransactionIdentifier txId, DataTreeModification mod, + Exception failure); }