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%2FServerChangeStatus.java;h=8f6a370a922c9964041788e12b318245c34c8919;hb=15f11d24306fe2796411e8078a84fc82213bacf6;hp=64a0f66fc2643b4d8c0227483ad2be84b22f860b;hpb=250f3f77c80284536cc32e96739f713d21844103;p=controller.git diff --git a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/ServerChangeStatus.java b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/ServerChangeStatus.java index 64a0f66fc2..8f6a370a92 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/ServerChangeStatus.java +++ b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/ServerChangeStatus.java @@ -13,11 +13,39 @@ package org.opendaylight.controller.cluster.raft.messages; * @author Thomas Pantelis */ public enum ServerChangeStatus { + /** + * Request successfully completed. + */ OK, + + /** + * No leader exists to process the request. + */ NO_LEADER, + + /** + * For an AddServer request, the leader timed out trying to install a snapshot on the new server. + */ TIMEOUT, + + /** + * For an AddServer request, the server to add already exists. + */ ALREADY_EXISTS, - DOES_NOT_EXIST, // Server with the specified address does not exist - NOT_SUPPORTED, // Some types of RemoveServer for example Removing the current Leader may not be - // supported (at least initially) + + /** + * For a RemoveServer request, the server to remove does not exist. + */ + DOES_NOT_EXIST, + + /** + * The leader could not process the request due to a prior request that timed out while trying to + * achieve replication consensus. + */ + PRIOR_REQUEST_CONSENSUS_TIMEOUT, + + /** + * An unsupported request, for example removing the leader in a single node cluster. + */ + NOT_SUPPORTED, }