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.raft.base.messages;
12 * The FollowerInitialSyncUpStatus is sent by a Follower to inform any RaftActor subclass whether the Follower
13 * is at least at the same commitIndex as the Leader was when it sent the follower the very first heartbeat.
15 * This status can be used to determine if a Follower has caught up with the current Leader in an upgrade scenario
19 public class FollowerInitialSyncUpStatus {
20 private final boolean initialSyncDone;
21 private final String name;
23 public FollowerInitialSyncUpStatus(boolean initialSyncDone, String name){
24 this.initialSyncDone = initialSyncDone;
28 public boolean isInitialSyncDone() {
29 return initialSyncDone;
32 public String getName() {