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%2Fmessages%2FRemotePrimaryShardFound.java;h=fbe34b2ed7c4e1a9149345713efc36e9318f2dd6;hb=refs%2Fchanges%2F54%2F57354%2F8;hp=662eefd9d1ec00d813a5727bda0c64e38d5ab061;hpb=a2c4e27ea137ce9e2929916b2964116c4df188a0;p=controller.git 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..fbe34b2ed7 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,24 @@ 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("]"); - return builder.toString(); + return "RemotePrimaryShardFound [primaryPath=" + primaryPath + + ", primaryVersion=" + primaryVersion + "]"; } }