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%2Fmessages%2FForwardedReadyTransaction.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fmessages%2FForwardedReadyTransaction.java;h=4f8ea51f784ea2e0352eb6aedd8d1dc35469f0ef;hp=0000000000000000000000000000000000000000;hb=f9f6d8ed4b12e39386801f6b16b9485f5558336e;hpb=c352d8958cf16d2eded7bb103b7be69546164ce5 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/ForwardedReadyTransaction.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/ForwardedReadyTransaction.java new file mode 100644 index 0000000000..4f8ea51f78 --- /dev/null +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/ForwardedReadyTransaction.java @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2014 Brocade Communications Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ +package org.opendaylight.controller.cluster.datastore.messages; + +import org.opendaylight.controller.cluster.datastore.modification.Modification; +import org.opendaylight.controller.sal.core.spi.data.DOMStoreThreePhaseCommitCohort; + +/** + * Transaction ReadyTransaction message that is forwarded to the local Shard from the ShardTransaction. + * + * @author Thomas Pantelis + */ +public class ForwardedReadyTransaction { + private final String transactionID; + private final DOMStoreThreePhaseCommitCohort cohort; + private final Modification modification; + + public ForwardedReadyTransaction(String transactionID, DOMStoreThreePhaseCommitCohort cohort, + Modification modification) { + this.transactionID = transactionID; + this.cohort = cohort; + this.modification = modification; + } + + public String getTransactionID() { + return transactionID; + } + + public DOMStoreThreePhaseCommitCohort getCohort() { + return cohort; + } + + public Modification getModification() { + return modification; + } +}