com.caucho.cloud.topology
Enum CloudServerState
java.lang.Object
java.lang.Enum<CloudServerState>
com.caucho.cloud.topology.CloudServerState
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<CloudServerState>
public enum CloudServerState
- extends java.lang.Enum<CloudServerState>
Represents the current state of a cloud server.
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
UNKNOWN
public static final CloudServerState UNKNOWN
CLOSED
public static final CloudServerState CLOSED
DISABLED
public static final CloudServerState DISABLED
DISABLED_SOFT
public static final CloudServerState DISABLED_SOFT
HEARTBEAT_FAILED
public static final CloudServerState HEARTBEAT_FAILED
ACTIVE
public static final CloudServerState ACTIVE
values
public static CloudServerState[] 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 (CloudServerState c : CloudServerState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CloudServerState valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
onHeartbeatStart
public CloudServerState onHeartbeatStart()
onHeartbeatStop
public CloudServerState onHeartbeatStop()
isDisableSoft
public boolean isDisableSoft()
isDisabled
public boolean isDisabled()