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

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

public enum J2EEServerState
extends Enum<J2EEServerState>

Enumeration listing all possible J2EE Server states.

Author:
Francois Fornaciari

Enum Constant Summary
FAILED
          FAILED state.
INITIAL
          INITIAL state.
RUNNING
          RUNNING state.
STANDBY
          STANDBY state.
STARTING
          STARTING state.
STOPPED
          STOPPED state.
STOPPING
          STOPPING state.
UNKNOWN
          UNKNOWN state.
UNREACHABLE
          UNREACHABLE state.
 
Method Summary
 String getName()
          Returns the state name.
static J2EEServerState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static J2EEServerState[] 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

INITIAL

public static final J2EEServerState INITIAL
INITIAL state.


STARTING

public static final J2EEServerState STARTING
STARTING state.


RUNNING

public static final J2EEServerState RUNNING
RUNNING state.


STOPPING

public static final J2EEServerState STOPPING
STOPPING state.


STOPPED

public static final J2EEServerState STOPPED
STOPPED state.


FAILED

public static final J2EEServerState FAILED
FAILED state.


UNREACHABLE

public static final J2EEServerState UNREACHABLE
UNREACHABLE state.


UNKNOWN

public static final J2EEServerState UNKNOWN
UNKNOWN state.


STANDBY

public static final J2EEServerState STANDBY
STANDBY state.

Method Detail

values

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

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

valueOf

public static J2EEServerState 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.