Enum ServerChangeStatus
- java.lang.Object
-
- java.lang.Enum<ServerChangeStatus>
-
- org.opendaylight.controller.cluster.raft.messages.ServerChangeStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<ServerChangeStatus>
public enum ServerChangeStatus extends Enum<ServerChangeStatus>
Enumerates server configuration change status reply codes.- Author:
- Thomas Pantelis
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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.INVALID_REQUEST
Some part of the request is invalid.NO_LEADER
No leader exists to process the request.NOT_SUPPORTED
An unsupported request, for example removing the leader in a single node cluster.OK
Request successfully completed.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.TIMEOUT
For an AddServer request, the leader timed out trying to install a snapshot on the new server.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServerChangeStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static ServerChangeStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final ServerChangeStatus OK
Request successfully completed.
-
NO_LEADER
public static final ServerChangeStatus NO_LEADER
No leader exists to process the request.
-
TIMEOUT
public static final ServerChangeStatus TIMEOUT
For an AddServer request, the leader timed out trying to install a snapshot on the new server.
-
ALREADY_EXISTS
public static final ServerChangeStatus ALREADY_EXISTS
For an AddServer request, the server to add already exists.
-
DOES_NOT_EXIST
public static final ServerChangeStatus DOES_NOT_EXIST
For a RemoveServer request, the server to remove does not exist.
-
PRIOR_REQUEST_CONSENSUS_TIMEOUT
public static final ServerChangeStatus 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
public static final ServerChangeStatus NOT_SUPPORTED
An unsupported request, for example removing the leader in a single node cluster.
-
INVALID_REQUEST
public static final ServerChangeStatus INVALID_REQUEST
Some part of the request is invalid.
-
-
Method Detail
-
values
public static ServerChangeStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ServerChangeStatus c : ServerChangeStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServerChangeStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-