Bug 5740: Add ControlMessage interface to raft messages
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / messages / UnInitializedFollowerSnapshotReply.java
1 /*
2  * Copyright (c) 2015 Dell 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 package org.opendaylight.controller.cluster.raft.messages;
9
10 import akka.dispatch.ControlMessage;
11
12 /**
13  * Local message sent to self on receiving the InstallSnapshotReply from a follower indicating that
14  * the catch up of the follower has completed successfully for an AddServer operation.
15  */
16 public class UnInitializedFollowerSnapshotReply implements ControlMessage {
17     private final String followerId;
18
19     public UnInitializedFollowerSnapshotReply(String followerId) {
20         this.followerId = followerId;
21     }
22
23     public String getFollowerId() {
24         return followerId;
25     }
26
27     @Override
28     public String toString() {
29         return "UnInitializedFollowerSnapshotReply [followerId=" + followerId + "]";
30     }
31 }