Merge "BUG-1690: catch wildcard InstanceIdentifiers"
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / base / messages / CaptureSnapshot.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.cluster.raft.base.messages;
10
11 public class CaptureSnapshot {
12     private long lastAppliedIndex;
13     private long lastAppliedTerm;
14     private long lastIndex;
15     private long lastTerm;
16
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;
23     }
24
25     public long getLastAppliedIndex() {
26         return lastAppliedIndex;
27     }
28
29     public long getLastAppliedTerm() {
30         return lastAppliedTerm;
31     }
32
33     public long getLastIndex() {
34         return lastIndex;
35     }
36
37     public long getLastTerm() {
38         return lastTerm;
39     }
40 }