JBoss Modular Service Kernel API 1.0.0.GA

org.jboss.msc.service
Enum ServiceController.Transition

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

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

A transition from one substate to another. The list of possible transitions may change over time, so users should not rely on its permanence.


Enum Constant Summary
DOWN_to_REMOVING
          Transition from DOWN to REMOVING.
DOWN_to_START_REQUESTED
          Transition from DOWN to START_REQUESTED.
DOWN_to_WAITING
          Transition from DOWN to WAITING.
DOWN_to_WONT_START
          Transition from DOWN to WONT_START.
PROBLEM_to_START_REQUESTED
          Transition from PROBLEM to START_REQUESTED.
REMOVING_to_DOWN
          Transition from REMOVING to DOWN.
REMOVING_to_REMOVED
          Transition from REMOVING to REMOVED.
START_FAILED_to_DOWN
          Transition from START_FAILED to DOWN.
START_FAILED_to_STARTING
          Transition from START_FAILED to START_INITIATING.
START_INITIATING_to_STARTING
          Transition from START_INITIATING to STARTING.
START_REQUESTED_to_DOWN
          Transition from START_REQUESTED to DOWN.
START_REQUESTED_to_PROBLEM
          Transition from START_REQUESTED to PROBLEM.
START_REQUESTED_to_START_INITIATING
          Transition from START_REQUESTED to START_INITIATING.
STARTING_to_START_FAILED
          Transition from STARTING to START_FAILED.
STARTING_to_UP
          Transition from STARTING to UP.
STOP_REQUESTED_to_STOPPING
          Transition from STOP_REQUESTED to STOPPING.
STOP_REQUESTED_to_UP
          Transition from STOP_REQUESTED to UP.
STOPPING_to_DOWN
          Transition from STOPPING to DOWN.
UP_to_STOP_REQUESTED
          Transition from UP to STOP_REQUESTED.
WAITING_to_DOWN
          Transition from WAITING to DOWN.
WONT_START_to_DOWN
          Transition from WONT_START to DOWN.
 
Method Summary
 boolean entersRestState()
          Determine whether this transition causes movement from a non-rest state to a rest state.
 ServiceController.Substate getAfter()
          Get the target (new) state of this transition.
 ServiceController.Substate getBefore()
          Get the source state of this transition.
 boolean leavesRestState()
          Determine whether this transition causes movement from a rest state to a non-rest state.
 String toString()
          Get the string representation of this transition.
static ServiceController.Transition valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ServiceController.Transition[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

START_REQUESTED_to_DOWN

public static final ServiceController.Transition START_REQUESTED_to_DOWN
Transition from START_REQUESTED to DOWN.


START_REQUESTED_to_PROBLEM

public static final ServiceController.Transition START_REQUESTED_to_PROBLEM
Transition from START_REQUESTED to PROBLEM.


START_REQUESTED_to_START_INITIATING

public static final ServiceController.Transition START_REQUESTED_to_START_INITIATING
Transition from START_REQUESTED to START_INITIATING.


PROBLEM_to_START_REQUESTED

public static final ServiceController.Transition PROBLEM_to_START_REQUESTED
Transition from PROBLEM to START_REQUESTED.


START_INITIATING_to_STARTING

public static final ServiceController.Transition START_INITIATING_to_STARTING
Transition from START_INITIATING to STARTING.


STARTING_to_UP

public static final ServiceController.Transition STARTING_to_UP
Transition from STARTING to UP.


STARTING_to_START_FAILED

public static final ServiceController.Transition STARTING_to_START_FAILED
Transition from STARTING to START_FAILED.


START_FAILED_to_STARTING

public static final ServiceController.Transition START_FAILED_to_STARTING
Transition from START_FAILED to START_INITIATING.


START_FAILED_to_DOWN

public static final ServiceController.Transition START_FAILED_to_DOWN
Transition from START_FAILED to DOWN.


UP_to_STOP_REQUESTED

public static final ServiceController.Transition UP_to_STOP_REQUESTED
Transition from UP to STOP_REQUESTED.


STOP_REQUESTED_to_UP

public static final ServiceController.Transition STOP_REQUESTED_to_UP
Transition from STOP_REQUESTED to UP.


STOP_REQUESTED_to_STOPPING

public static final ServiceController.Transition STOP_REQUESTED_to_STOPPING
Transition from STOP_REQUESTED to STOPPING.


STOPPING_to_DOWN

public static final ServiceController.Transition STOPPING_to_DOWN
Transition from STOPPING to DOWN.


REMOVING_to_REMOVED

public static final ServiceController.Transition REMOVING_to_REMOVED
Transition from REMOVING to REMOVED.


REMOVING_to_DOWN

public static final ServiceController.Transition REMOVING_to_DOWN
Transition from REMOVING to DOWN.


DOWN_to_REMOVING

public static final ServiceController.Transition DOWN_to_REMOVING
Transition from DOWN to REMOVING.


DOWN_to_START_REQUESTED

public static final ServiceController.Transition DOWN_to_START_REQUESTED
Transition from DOWN to START_REQUESTED.


DOWN_to_WAITING

public static final ServiceController.Transition DOWN_to_WAITING
Transition from DOWN to WAITING.


DOWN_to_WONT_START

public static final ServiceController.Transition DOWN_to_WONT_START
Transition from DOWN to WONT_START.


WAITING_to_DOWN

public static final ServiceController.Transition WAITING_to_DOWN
Transition from WAITING to DOWN.


WONT_START_to_DOWN

public static final ServiceController.Transition WONT_START_to_DOWN
Transition from WONT_START to DOWN.

Method Detail

values

public static ServiceController.Transition[] 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.Transition c : ServiceController.Transition.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.Transition 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

leavesRestState

public boolean leavesRestState()
Determine whether this transition causes movement from a rest state to a non-rest state.

Returns:
true if this transition leaves a rest state

entersRestState

public boolean entersRestState()
Determine whether this transition causes movement from a non-rest state to a rest state.

Returns:
true if this transition enters a rest state

getBefore

public ServiceController.Substate getBefore()
Get the source state of this transition.

Returns:
the source state

getAfter

public ServiceController.Substate getAfter()
Get the target (new) state of this transition.

Returns:
the target state

toString

public String toString()
Get the string representation of this transition.

Overrides:
toString in class Enum<ServiceController.Transition>
Returns:
the string

JBoss Modular Service Kernel API 1.0.0.GA

Copyright © 2011 JBoss, a division of Red Hat, Inc.