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.base.messages;
11 public class CaptureSnapshot {
12 private long lastAppliedIndex;
13 private long lastAppliedTerm;
14 private long lastIndex;
15 private long lastTerm;
17 public CaptureSnapshot(long lastIndex, long lastTerm,
18 long lastAppliedIndex, long lastAppliedTerm) {
19 this.lastIndex = lastIndex;
20 this.lastTerm = lastTerm;
21 this.lastAppliedIndex = lastAppliedIndex;
22 this.lastAppliedTerm = lastAppliedTerm;
25 public long getLastAppliedIndex() {
26 return lastAppliedIndex;
29 public long getLastAppliedTerm() {
30 return lastAppliedTerm;
33 public long getLastIndex() {
37 public long getLastTerm() {