2 * Copyright (c) 2014 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;
11 import java.util.concurrent.atomic.AtomicLong;
14 * The state of the followers log as known by the Leader
16 public interface FollowerLogInformation {
19 * Increment the value of the nextIndex
22 public long incrNextIndex();
25 * Increment the value of the matchIndex
28 public long incrMatchIndex();
31 * The identifier of the follower
32 * This could simply be the url of the remote actor
34 public String getId();
37 * for each server, index of the next log entry
38 * to send to that server (initialized to leader
41 public AtomicLong getNextIndex();
44 * for each server, index of highest log entry
45 * known to be replicated on server
46 * (initialized to 0, increases monotonically)
48 public AtomicLong getMatchIndex();