2 * Copyright (c) 2015 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 public class SwitchShardBehavior {
12 private final String shardName;
13 private final String newState;
14 private final long term;
16 public SwitchShardBehavior(String shardName, String newState, long term) {
17 this.shardName = shardName;
18 this.newState = newState;
22 public String getShardName() {
26 public String getNewState() {
30 public long getTerm() {
35 public String toString() {
36 final StringBuilder sb = new StringBuilder("SwitchShardBehavior{");
37 sb.append("shardName='").append(shardName).append('\'');
38 sb.append(", newState='").append(newState).append('\'');
39 sb.append(", term=").append(term);