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=ca6f34c5c446e499157aac9cc9451e8e6bf1b6cf;hb=6ef0b898f2117a4bb3a510c0df7af340f4fc8eca;hp=b5caa1656c4f149a30f3d0e0054375ed595b2240;hpb=4c0cc4831e7ecc2d5f745a42ba7a390361432fd2;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 b5caa1656c..ca6f34c5c4 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,7 +13,44 @@ 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, - TIMEOUT + + /** + * 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, + + /** + * 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, + + /** + * Some part of the request is invalid. + */ + INVALID_REQUEST, }