org.ow2.jonas.lib.management.javaee
Enum J2EEServiceState

java.lang.Object
  extended by java.lang.Enum<J2EEServiceState>
      extended by org.ow2.jonas.lib.management.javaee.J2EEServiceState
All Implemented Interfaces:
Serializable, Comparable<J2EEServiceState>

public enum J2EEServiceState
extends Enum<J2EEServiceState>

Enumeration listing all possible states for a JOnAS Service.

Author:
Adriana Danes

Enum Constant Summary
FAILED
          FAILED state.
RUNNING
          RUNNING state.
STARTING
          STARTING state.
STOPPED
          STOPPED state.
STOPPING
          STOPPING state.
 
Method Summary
 String getName()
          Returns the state name.
static J2EEServiceState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static J2EEServiceState[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STARTING

public static final J2EEServiceState STARTING
STARTING state.


RUNNING

public static final J2EEServiceState RUNNING
RUNNING state.


STOPPING

public static final J2EEServiceState STOPPING
STOPPING state.


STOPPED

public static final J2EEServiceState STOPPED
STOPPED state.


FAILED

public static final J2EEServiceState FAILED
FAILED state.

Method Detail

values

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

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

valueOf

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

getName

public String getName()
Returns the state name.

Returns:
the state name


Copyright © 2010 OW2 Consortium. All Rights Reserved.