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
8 package org.opendaylight.controller.cluster.raft.messages;
10 public final class InstallSnapshotReply extends AbstractRaftRPC {
12 private static final long serialVersionUID = 642227896390779503L;
14 // The followerId - this will be used to figure out which follower is
16 private final String followerId;
17 private final int chunkIndex;
18 private final boolean success;
20 public InstallSnapshotReply(final long term, final String followerId, final int chunkIndex, final boolean success) {
22 this.followerId = followerId;
23 this.chunkIndex = chunkIndex;
24 this.success = success;
27 public String getFollowerId() {
31 public int getChunkIndex() {
35 public boolean isSuccess() {
40 public String toString() {
41 return "InstallSnapshotReply [term=" + getTerm()
42 + ", followerId=" + followerId
43 + ", chunkIndex=" + chunkIndex
44 + ", success=" + success + "]";
48 Object writeReplace() {