Merge "Bug 1637: Change Rpc actor calls to async"
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / messages / InstallSnapshotReply.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.messages;
10
11 public class InstallSnapshotReply extends AbstractRaftRPC {
12
13     // The followerId - this will be used to figure out which follower is
14     // responding
15     private final String followerId;
16     private final int chunkIndex;
17     private boolean success;
18
19     public InstallSnapshotReply(long term, String followerId, int chunkIndex,
20         boolean success) {
21         super(term);
22         this.followerId = followerId;
23         this.chunkIndex = chunkIndex;
24         this.success = success;
25     }
26
27     public String getFollowerId() {
28         return followerId;
29     }
30
31     public int getChunkIndex() {
32         return chunkIndex;
33     }
34
35     public boolean isSuccess() {
36         return success;
37     }
38 }