public enum ServerStatus extends Enum<ServerStatus>
Enum Constant and Description |
---|
BAD_GEN_ID_STATUS
DS in bad generation id status.
|
DEGRADED_STATUS
DS in degraded status.
|
FULL_UPDATE_STATUS
DS in full update (local DS is initialized from another DS).
|
INVALID_STATUS
Invalid status: special status used in state machine implementation to
return an error (impossible status).
|
NORMAL_STATUS
DS in normal status.
|
NOT_CONNECTED_STATUS
Not connected status: special status used as initial status of the state
machine in the DS context only as already connected while state machine
considered in RS context.
|
Modifier and Type | Method and Description |
---|---|
byte |
getValue()
Get a numeric representation of the status.
|
String |
toString()
Get a user readable string representing this status (User friendly string
for monitoring purpose).
|
static ServerStatus |
valueOf(byte value)
Returns the ServerStatus matching the passed status numeric representation.
|
static ServerStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerStatus INVALID_STATUS
public static final ServerStatus NOT_CONNECTED_STATUS
public static final ServerStatus NORMAL_STATUS
public static final ServerStatus DEGRADED_STATUS
public static final ServerStatus FULL_UPDATE_STATUS
public static final ServerStatus BAD_GEN_ID_STATUS
public static ServerStatus[] values()
for (ServerStatus c : ServerStatus.values()) System.out.println(c);
public static ServerStatus 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 nullpublic static ServerStatus valueOf(byte value) throws IllegalArgumentException
value
- The numeric value for the status to returnIllegalArgumentException
- If provided status value is
wrongpublic byte getValue()
public String toString()
toString
in class Enum<ServerStatus>
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.