X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2Fmessages%2FFollowerCatchUpTimeout.java;fp=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2Fmessages%2FFollowerCatchUpTimeout.java;h=670070279459d5c9a0baa92d75f2cb86cb3f1fb9;hb=4e186d6e4a9c84482dc74aee353e12a12f6728a7;hp=0000000000000000000000000000000000000000;hpb=2dbca7910d629b3fd10842143fc7ede0cc506c07;p=controller.git 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 index 0000000000..6700702794 --- /dev/null +++ b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/FollowerCatchUpTimeout.java @@ -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; + } + +}