public enum CloudServerState extends java.lang.Enum<CloudServerState>
Enum Constant and Description |
---|
ACTIVE |
CLOSED |
DISABLED |
DISABLED_SOFT |
HEARTBEAT_FAILED |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
boolean |
isDisabled() |
boolean |
isDisableSoft() |
CloudServerState |
onHeartbeatStart() |
CloudServerState |
onHeartbeatStop() |
static CloudServerState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CloudServerState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CloudServerState UNKNOWN
public static final CloudServerState CLOSED
public static final CloudServerState DISABLED
public static final CloudServerState DISABLED_SOFT
public static final CloudServerState HEARTBEAT_FAILED
public static final CloudServerState ACTIVE
public static CloudServerState[] values()
for (CloudServerState c : CloudServerState.values()) System.out.println(c);
public static CloudServerState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic CloudServerState onHeartbeatStart()
public CloudServerState onHeartbeatStop()
public boolean isDisableSoft()
public boolean isDisabled()