com.continuent.tungsten.common.cluster.resource
Enum ResourceState

java.lang.Object
  extended by java.lang.Enum<ResourceState>
      extended by com.continuent.tungsten.common.cluster.resource.ResourceState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ResourceState>

public enum ResourceState
extends java.lang.Enum<ResourceState>


Enum Constant Summary
BACKUP
           
CONSISTENT
           
DEGRADED
           
EXTENSION
           
FAILED
           
JOINING
           
MODIFIED
           
OFFLINE
           
ONLINE
           
RESTORING
           
RUNNING
           
SHUNNED
           
STOPPED
           
SUSPECT
           
SYNCHRONIZING
           
TIMEOUT
           
UNKNOWN
           
UNREACHABLE
           
 
Method Summary
static ResourceState fromString(java.lang.String x)
          Create a ResourceState from a non case sensitive String
static ResourceState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ResourceState[] 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

ONLINE

public static final ResourceState ONLINE

OFFLINE

public static final ResourceState OFFLINE

SYNCHRONIZING

public static final ResourceState SYNCHRONIZING

JOINING

public static final ResourceState JOINING

SUSPECT

public static final ResourceState SUSPECT

STOPPED

public static final ResourceState STOPPED

UNKNOWN

public static final ResourceState UNKNOWN

TIMEOUT

public static final ResourceState TIMEOUT

DEGRADED

public static final ResourceState DEGRADED

SHUNNED

public static final ResourceState SHUNNED

CONSISTENT

public static final ResourceState CONSISTENT

MODIFIED

public static final ResourceState MODIFIED

FAILED

public static final ResourceState FAILED

BACKUP

public static final ResourceState BACKUP

UNREACHABLE

public static final ResourceState UNREACHABLE

EXTENSION

public static final ResourceState EXTENSION

RESTORING

public static final ResourceState RESTORING

RUNNING

public static final ResourceState RUNNING
Method Detail

values

public static ResourceState[] 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 (ResourceState c : ResourceState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ResourceState 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

fromString

public static ResourceState fromString(java.lang.String x)
                                throws ResourceException
Create a ResourceState from a non case sensitive String

Parameters:
x - the string to be converted
Returns:
the converted ResourceState
Throws:
ResourceException - if could not cast string to a ResourceState