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;
21 public RemotePrimaryShardFound(final String primaryPath) {
22 this.primaryPath = primaryPath;
25 public String getPrimaryPath() {
30 public String toString() {
31 StringBuilder builder = new StringBuilder();
32 builder.append("RemotePrimaryShardFound [primaryPath=").append(primaryPath).append("]");
33 return builder.toString();