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

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

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

Enumerates the possible statuses of the GHN.


Enum Constant Summary
CERTIFIED
           
DEPLOYED
           
DOWN
           
FAILED
           
READY
           
STARTED
           
UNREACHABLE
           
UPDATED
           
 
Method Summary
abstract  List<GHNContext.Status> previous()
          Returns the list of statuses from which this status may be reached.
static GHNContext.Status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GHNContext.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 GHNContext.Status DEPLOYED

STARTED

public static final GHNContext.Status STARTED

CERTIFIED

public static final GHNContext.Status CERTIFIED

UPDATED

public static final GHNContext.Status UPDATED

READY

public static final GHNContext.Status READY

FAILED

public static final GHNContext.Status FAILED

DOWN

public static final GHNContext.Status DOWN

UNREACHABLE

public static final GHNContext.Status UNREACHABLE
Method Detail

values

public static GHNContext.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 (GHNContext.Status c : GHNContext.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 GHNContext.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

previous

public abstract List<GHNContext.Status> previous()
Returns the list of statuses from which this status may be reached.

Returns:
the status list.


Copyright © 2013. All Rights Reserved.