Enum Class ServerChangeStatus
java.lang.Object
java.lang.Enum<ServerChangeStatus>
org.opendaylight.controller.cluster.raft.messages.ServerChangeStatus
- All Implemented Interfaces:
Serializable
,Comparable<ServerChangeStatus>
,Constable
Enumerates server configuration change status reply codes.
- Author:
- Thomas Pantelis
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFor an AddServer request, the server to add already exists.For a RemoveServer request, the server to remove does not exist.Some part of the request is invalid.No leader exists to process the request.An unsupported request, for example removing the leader in a single node cluster.Request successfully completed.The leader could not process the request due to a prior request that timed out while trying to achieve replication consensus.For an AddServer request, the leader timed out trying to install a snapshot on the new server. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerChangeStatus
Returns the enum constant of this class with the specified name.static ServerChangeStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
Request successfully completed. -
NO_LEADER
No leader exists to process the request. -
TIMEOUT
For an AddServer request, the leader timed out trying to install a snapshot on the new server. -
ALREADY_EXISTS
For an AddServer request, the server to add already exists. -
DOES_NOT_EXIST
For a RemoveServer request, the server to remove does not exist. -
PRIOR_REQUEST_CONSENSUS_TIMEOUT
The leader could not process the request due to a prior request that timed out while trying to achieve replication consensus. -
NOT_SUPPORTED
An unsupported request, for example removing the leader in a single node cluster. -
INVALID_REQUEST
Some part of the request is invalid.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-