org.jboss.msc.service
Enum ServiceController.State

java.lang.Object
  extended by java.lang.Enum<ServiceController.State>
      extended by org.jboss.msc.service.ServiceController.State
All Implemented Interfaces:
Serializable, Comparable<ServiceController.State>
Enclosing interface:
ServiceController<S>

public static enum ServiceController.State
extends Enum<ServiceController.State>

A possible state for a service controller.


Enum Constant Summary
DOWN
          Down.
REMOVED
          Removed from the container.
START_FAILED
          Start failed, or was cancelled.
STARTING
          Service is starting.
STOPPING
          Service is stopping.
UP
          Up.
 
Method Summary
static ServiceController.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ServiceController.State[] 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

DOWN

public static final ServiceController.State DOWN
Down. All dependents are down.


STARTING

public static final ServiceController.State STARTING
Service is starting. Dependencies may not enter the DOWN state. This state may not be left until the start method has finished or failed.


START_FAILED

public static final ServiceController.State START_FAILED
Start failed, or was cancelled. From this state, the start may be retried or the service may enter the DOWN state.


UP

public static final ServiceController.State UP
Up.


STOPPING

public static final ServiceController.State STOPPING
Service is stopping. Dependents may not enter the STARTING state. This state may not be left until all dependents are DOWN and the stop method has finished.


REMOVED

public static final ServiceController.State REMOVED
Removed from the container.

Method Detail

values

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

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

valueOf

public static ServiceController.State 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 © 2011. All Rights Reserved.