g-Eclipse
Release 1.0.0

eu.geclipse.servicejob.model
Enum ServiceJobStates

java.lang.Object
  extended by java.lang.Enum<ServiceJobStates>
      extended by eu.geclipse.servicejob.model.ServiceJobStates
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ServiceJobStates>

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

Enumeration class of Operator's Jobs statuses.


Enum Constant Summary
CRITICAL
          CRITICAL state (when Job was finished).
ERROR
          ERROR state (when Job was finished).
NA
          State not available.
NULL
          null value
OK
          OK state.
RUNNING
          Operator's Job is still running.
WARNING
          WARRNING state (when Job was finished).
 
Method Summary
 java.lang.String getAlias()
          Method to access string alias of enumeration value.
static ServiceJobStates valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ServiceJobStates valueOfAlias(java.lang.String alias)
          Returns enumeration value for given state alias.
static ServiceJobStates[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OK

public static final ServiceJobStates OK
OK state.


ERROR

public static final ServiceJobStates ERROR
ERROR state (when Job was finished).


WARNING

public static final ServiceJobStates WARNING
WARRNING state (when Job was finished).


CRITICAL

public static final ServiceJobStates CRITICAL
CRITICAL state (when Job was finished).


NA

public static final ServiceJobStates NA
State not available.


RUNNING

public static final ServiceJobStates RUNNING
Operator's Job is still running.


NULL

public static final ServiceJobStates NULL
null value

Method Detail

values

public static final ServiceJobStates[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ServiceJobStates c : ServiceJobStates.values())
        System.out.println(c);

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

valueOf

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

valueOfAlias

public static ServiceJobStates valueOfAlias(java.lang.String alias)
Returns enumeration value for given state alias.

Parameters:
alias - text alias of Operator's Job state
Returns:
ServiceJobStates object representing value of alias, or NULL if there is no value for given alias.

getAlias

public java.lang.String getAlias()
Method to access string alias of enumeration value.

Returns:
string alias of enumeration value

g-Eclipse
Release 1.0.0