2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.controller.cluster.datastore.messages;
11 import java.io.Serializable;
14 * Local or remote message sent in reply to FindPrimaryShard to indicate the primary shard is remote to the caller.
16 public class RemotePrimaryShardFound implements Serializable {
17 private static final long serialVersionUID = 1L;
19 private final String primaryPath;
20 private final short primaryVersion;
22 public RemotePrimaryShardFound(final String primaryPath, short primaryVersion) {
23 this.primaryPath = primaryPath;
24 this.primaryVersion = primaryVersion;
27 public String getPrimaryPath() {
31 public short getPrimaryVersion() {
32 return primaryVersion;
36 public String toString() {
37 return "RemotePrimaryShardFound [primaryPath=" + primaryPath
38 + ", primaryVersion=" + primaryVersion + "]";