2 * Copyright (c) 2015 Brocade Communications 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
8 package org.opendaylight.controller.cluster.notifications;
10 import java.io.Serializable;
13 * A message initiated internally from the RaftActor when some state of a leader has changed
15 * @author Thomas Pantelis
17 public class LeaderStateChanged implements Serializable {
18 private static final long serialVersionUID = 1L;
20 private final String memberId;
21 private final String leaderId;
23 public LeaderStateChanged(String memberId, String leaderId) {
24 this.memberId = memberId;
25 this.leaderId = leaderId;
28 public String getMemberId() {
32 public String getLeaderId() {
37 public String toString() {
38 StringBuilder builder = new StringBuilder();
39 builder.append("LeaderStateChanged [memberId=").append(memberId).append(", leaderId=").append(leaderId)
41 return builder.toString();