Free disk buffers
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / messages / UnInitializedFollowerSnapshotReply.java
index 50f20705ca2e1d94eb3bf3707f04ed9efbf93149..ff11ca0317ce9f8adae08ba2751bd4609bb8603e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Dell Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2015 Dell Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -7,17 +7,25 @@
  */
 package org.opendaylight.controller.cluster.raft.messages;
 
+import akka.dispatch.ControlMessage;
+
 /**
- * Local message sent to self on receiving InstallSnapshotReply from a follower, this message indicates that
- * the catchup of the follower is done succesfully during AddServer scenario
+ * Local message sent to self on receiving the InstallSnapshotReply from a follower indicating that
+ * the catch up of the follower has completed successfully for an AddServer operation.
  */
-public class  UnInitializedFollowerSnapshotReply {
+public class UnInitializedFollowerSnapshotReply implements ControlMessage {
     private final String followerId;
 
-    public UnInitializedFollowerSnapshotReply(String follId){
-       this.followerId = follId;
+    public UnInitializedFollowerSnapshotReply(String followerId) {
+        this.followerId = followerId;
     }
+
     public String getFollowerId() {
         return followerId;
     }
+
+    @Override
+    public String toString() {
+        return "UnInitializedFollowerSnapshotReply [followerId=" + followerId + "]";
+    }
 }