public enum ServerChangeStatus extends Enum<ServerChangeStatus>
Enum Constant and 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.
|
Modifier and Type | Method and 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.
|
public static final ServerChangeStatus OK
public static final ServerChangeStatus NO_LEADER
public static final ServerChangeStatus TIMEOUT
public static final ServerChangeStatus ALREADY_EXISTS
public static final ServerChangeStatus DOES_NOT_EXIST
public static final ServerChangeStatus PRIOR_REQUEST_CONSENSUS_TIMEOUT
public static final ServerChangeStatus NOT_SUPPORTED
public static final ServerChangeStatus INVALID_REQUEST
public static ServerChangeStatus[] values()
for (ServerChangeStatus c : ServerChangeStatus.values()) System.out.println(c);
public static ServerChangeStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019 OpenDaylight. All rights reserved.