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.raft.client.messages;
10 import javax.management.ConstructorParameters;
13 * A bean class containing a snapshot of information for a follower returned from GetOnDemandRaftStats.
15 * @author Thomas Pantelis
17 public class FollowerInfo {
18 private final String id;
19 private final long nextIndex;
20 private final long matchIndex;
21 private final boolean isActive;
22 private final String timeSinceLastActivity;
23 private final boolean isVoting;
25 @ConstructorParameters({"id","nextIndex", "matchIndex", "active", "timeSinceLastActivity", "voting"})
26 public FollowerInfo(String id, long nextIndex, long matchIndex, boolean active, String timeSinceLastActivity,
29 this.nextIndex = nextIndex;
30 this.matchIndex = matchIndex;
31 this.isActive = active;
32 this.timeSinceLastActivity = timeSinceLastActivity;
33 this.isVoting = voting;
36 public String getId() {
40 public long getNextIndex() {
44 public long getMatchIndex() {
48 public boolean isActive() {
52 public String getTimeSinceLastActivity() {
53 return timeSinceLastActivity;
56 public boolean isVoting() {