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%2FLocalThreePhaseCommitCohort.java;h=091bfa01e4db0346b85fbb432ddace51e7e8857c;hp=ac279b7e995aee715b6e050c3c1bce043cfcf16c;hb=1d5ca4009be6c61d7b61989799037ad8f1ab7a75;hpb=f83b2d36fdd7e953ba72492ffb684cd112aa04a6 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LocalThreePhaseCommitCohort.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LocalThreePhaseCommitCohort.java index ac279b7e99..091bfa01e4 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LocalThreePhaseCommitCohort.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LocalThreePhaseCommitCohort.java @@ -19,9 +19,11 @@ import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier import org.opendaylight.controller.cluster.datastore.messages.CommitTransactionReply; import org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction; import org.opendaylight.controller.cluster.datastore.utils.ActorUtils; +import org.opendaylight.mdsal.common.api.CommitInfo; import org.opendaylight.mdsal.dom.spi.store.DOMStoreThreePhaseCommitCohort; import org.opendaylight.mdsal.dom.spi.store.SnapshotBackedWriteTransaction; -import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification; +import org.opendaylight.yangtools.yang.common.Empty; +import org.opendaylight.yangtools.yang.data.tree.api.DataTreeModification; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import scala.concurrent.Future; @@ -59,7 +61,7 @@ class LocalThreePhaseCommitCohort implements DOMStoreThreePhaseCommitCohort { this.leader = requireNonNull(leader); this.transaction = requireNonNull(transaction); this.operationError = requireNonNull(operationError); - this.modification = null; + modification = null; } private Future initiateCommit(final boolean immediate, @@ -95,7 +97,7 @@ class LocalThreePhaseCommitCohort implements DOMStoreThreePhaseCommitCohort { Future initiateDirectCommit() { final Future messageFuture = initiateCommit(true, Optional.empty()); - messageFuture.onComplete(new OnComplete() { + messageFuture.onComplete(new OnComplete<>() { @Override public void onComplete(final Throwable failure, final Object message) { if (failure != null) { @@ -122,19 +124,19 @@ class LocalThreePhaseCommitCohort implements DOMStoreThreePhaseCommitCohort { } @Override - public final ListenableFuture preCommit() { + public final ListenableFuture preCommit() { // Intended no-op throw new UnsupportedOperationException(); } @Override - public final ListenableFuture abort() { + public final ListenableFuture abort() { // Intended no-op throw new UnsupportedOperationException(); } @Override - public final ListenableFuture commit() { + public final ListenableFuture commit() { // Intended no-op throw new UnsupportedOperationException(); }