com.caucho.cloud.topology
Enum CloudServerState

java.lang.Object
  extended by java.lang.Enum<CloudServerState>
      extended by 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.


Enum Constant Summary
ACTIVE
           
CLOSED
           
DISABLED
           
DISABLED_SOFT
           
HEARTBEAT_FAILED
           
UNKNOWN
           
 
Method Summary
 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.
 
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
 

Enum Constant Detail

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
Method Detail

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()