X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FShardDataTreeTransactionParent.java;h=d7992596e0e37fa783290a5066f909de71f6be1d;hp=ee04aff515df8c4288e12e459137f26d4f6ab472;hb=1d5ca4009be6c61d7b61989799037ad8f1ab7a75;hpb=f16ea6ce80e6c0a47eae0cc1cf9d404c57d7880d 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 ee04aff515..d7992596e0 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,7 +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.tree.api.DataTreeModification; + abstract class ShardDataTreeTransactionParent { - abstract void abortTransaction(AbstractShardDataTreeTransaction transaction); - abstract ShardDataTreeCohort finishTransaction(ReadWriteShardDataTreeTransaction transaction); + + abstract void abortFromTransactionActor(AbstractShardDataTreeTransaction transaction); + + abstract void abortTransaction(AbstractShardDataTreeTransaction transaction, Runnable callback); + + abstract ShardDataTreeCohort finishTransaction(ReadWriteShardDataTreeTransaction transaction, + Optional> participatingShardNames); + + abstract ShardDataTreeCohort createReadyCohort(TransactionIdentifier txId, DataTreeModification mod, + Optional> participatingShardNames); + + abstract ShardDataTreeCohort createFailedCohort(TransactionIdentifier txId, DataTreeModification mod, + Exception failure); }