org.gcube.common.core.contexts
Enum GCUBEServiceContext.Status

java.lang.Object
  extended by java.lang.Enum<GCUBEServiceContext.Status>
      extended by org.gcube.common.core.contexts.GCUBEServiceContext.Status
All Implemented Interfaces:
Serializable, Comparable<GCUBEServiceContext.Status>
Enclosing class:
GCUBEServiceContext

public static enum GCUBEServiceContext.Status
extends Enum<GCUBEServiceContext.Status>

Enumerates the possible statuses of the service.


Nested Class Summary
static class GCUBEServiceContext.Status.Type
          Enumerates the status types.
 
Enum Constant Summary
DEPLOYED
           
DOWN
           
FAILED
           
INITIALISED
           
READIED
           
STATECHANGED
           
UNREACHABLE
           
UPDATED
           
 
Field Summary
protected  GCUBEServiceContext.Status.Type type
          The status type.
 
Method Summary
static GCUBEServiceContext.Status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GCUBEServiceContext.Status[] 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

DEPLOYED

public static final GCUBEServiceContext.Status DEPLOYED

INITIALISED

public static final GCUBEServiceContext.Status INITIALISED

READIED

public static final GCUBEServiceContext.Status READIED

UPDATED

public static final GCUBEServiceContext.Status UPDATED

STATECHANGED

public static final GCUBEServiceContext.Status STATECHANGED

FAILED

public static final GCUBEServiceContext.Status FAILED

DOWN

public static final GCUBEServiceContext.Status DOWN

UNREACHABLE

public static final GCUBEServiceContext.Status UNREACHABLE
Field Detail

type

protected final GCUBEServiceContext.Status.Type type
The status type.

Method Detail

values

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

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

valueOf

public static GCUBEServiceContext.Status valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2012. All Rights Reserved.