BUG 2817 - Basic implementation of RemoveServer in the Raft code
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / messages / FollowerCatchUpTimeout.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 com.google.common.base.Preconditions;
11
12 /**
13  * Local message sent to self when catch-up of a new follower doesn't complete in a timely manner
14  */
15
16 public class FollowerCatchUpTimeout {
17     private final String newServerId;
18
19     public FollowerCatchUpTimeout(String serverId){
20        this.newServerId = Preconditions.checkNotNull(serverId, "serverId should not be null");
21     }
22     public String getNewServerId() {
23         return newServerId;
24     }
25
26 }