2 * Copyright (c) 2014, 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.notifications;
12 * Role Change message initiated internally from the Raft Actor when a the behavior/role changes.
13 * Since its internal , need not be serialized
15 public class RoleChanged {
16 private final String memberId;
17 private final String oldRole;
18 private final String newRole;
20 public RoleChanged(String memberId, String oldRole, String newRole) {
21 this.memberId = memberId;
22 this.oldRole = oldRole;
23 this.newRole = newRole;
26 public String getMemberId() {
30 public String getOldRole() {
34 public String getNewRole() {
39 public String toString() {
40 return "RoleChanged [memberId=" + memberId + ", oldRole=" + oldRole + ", newRole=" + newRole + "]";