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%2FRemotePrimaryShardFound.java;h=d3e27dba95b847c4b6ad65487acb9e0bd1f28245;hp=662eefd9d1ec00d813a5727bda0c64e38d5ab061;hb=95c296a7c1e8e186a88a0a0dc82e080b2185db33;hpb=92cd266a60a0dd246324654d456b5068207d3037 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/RemotePrimaryShardFound.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/RemotePrimaryShardFound.java index 662eefd9d1..d3e27dba95 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/RemotePrimaryShardFound.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/RemotePrimaryShardFound.java @@ -17,19 +17,26 @@ public class RemotePrimaryShardFound implements Serializable { private static final long serialVersionUID = 1L; private final String primaryPath; + private final short primaryVersion; - public RemotePrimaryShardFound(final String primaryPath) { + public RemotePrimaryShardFound(final String primaryPath, short primaryVersion) { this.primaryPath = primaryPath; + this.primaryVersion = primaryVersion; } public String getPrimaryPath() { return primaryPath; } + public short getPrimaryVersion() { + return primaryVersion; + } + @Override public String toString() { StringBuilder builder = new StringBuilder(); - builder.append("RemotePrimaryShardFound [primaryPath=").append(primaryPath).append("]"); + builder.append("RemotePrimaryShardFound [primaryPath=").append(primaryPath).append(", primaryVersion=") + .append(primaryVersion).append("]"); return builder.toString(); } }