BUG-2187: Add Server - Leader Implementation
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / messages / FollowerCatchUpTimeout.java
diff --git a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/FollowerCatchUpTimeout.java b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/FollowerCatchUpTimeout.java
new file mode 100644 (file)
index 0000000..6700702
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2014 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,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.controller.cluster.raft.messages;
+
+import com.google.common.base.Preconditions;
+
+/**
+ * Local message sent to self when catch-up of a new follower doesn't complete in a timely manner
+ */
+
+public class FollowerCatchUpTimeout {
+    private final String newServerId;
+
+    public FollowerCatchUpTimeout(String serverId){
+       this.newServerId = Preconditions.checkNotNull(serverId, "serverId should not be null");
+    }
+    public String getNewServerId() {
+        return newServerId;
+    }
+
+}