public static enum ServiceController.Transition extends Enum<ServiceController.Transition>
Modifier and Type | Method and Description |
---|---|
boolean |
enters(ServiceController.State state)
Determine whether this transition causes entry into the given state.
|
boolean |
entersRestState()
Determine whether this transition causes movement from a non-rest state to a rest state.
|
boolean |
exits(ServiceController.State state)
Determine whether this transition causes exit from the given state.
|
ServiceController.Substate |
getAfter()
Get the target (new) state of this transition.
|
ServiceController.Substate |
getBefore()
Get the source state of this transition.
|
boolean |
in(ServiceController.Transition... transitions)
Determine if this transition is one of the given transitions.
|
boolean |
isForward() |
boolean |
leavesRestState()
Determine whether this transition causes movement from a rest state to a non-rest state.
|
boolean |
retains(ServiceController.State state)
Determine whether this substate transition retains the same given state before and after transition.
|
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.
|
public static final ServiceController.Transition START_REQUESTED_to_DOWN
START_REQUESTED
to DOWN
.public static final ServiceController.Transition START_REQUESTED_to_PROBLEM
START_REQUESTED
to PROBLEM
.public static final ServiceController.Transition START_REQUESTED_to_START_INITIATING
START_REQUESTED
to START_INITIATING
.public static final ServiceController.Transition PROBLEM_to_START_REQUESTED
PROBLEM
to START_REQUESTED
.public static final ServiceController.Transition START_INITIATING_to_STARTING
START_INITIATING
to STARTING
.public static final ServiceController.Transition STARTING_to_UP
public static final ServiceController.Transition STARTING_to_START_FAILED
STARTING
to START_FAILED
.public static final ServiceController.Transition START_FAILED_to_STARTING
START_FAILED
to START_INITIATING
.public static final ServiceController.Transition START_FAILED_to_DOWN
START_FAILED
to DOWN
.public static final ServiceController.Transition UP_to_STOP_REQUESTED
UP
to STOP_REQUESTED
.public static final ServiceController.Transition STOP_REQUESTED_to_UP
STOP_REQUESTED
to UP
.public static final ServiceController.Transition STOP_REQUESTED_to_STOPPING
STOP_REQUESTED
to STOPPING
.public static final ServiceController.Transition STOPPING_to_DOWN
public static final ServiceController.Transition REMOVING_to_REMOVED
public static final ServiceController.Transition REMOVING_to_DOWN
public static final ServiceController.Transition DOWN_to_REMOVING
public static final ServiceController.Transition DOWN_to_START_REQUESTED
DOWN
to START_REQUESTED
.public static final ServiceController.Transition DOWN_to_WAITING
public static final ServiceController.Transition DOWN_to_WONT_START
DOWN
to WONT_START
.public static final ServiceController.Transition WAITING_to_DOWN
public static final ServiceController.Transition WONT_START_to_DOWN
WONT_START
to DOWN
.public static final ServiceController.Transition CANCELLED_to_REMOVED
ServiceController.Substate.CANCELLED
to ServiceController.Substate.REMOVED
.public static ServiceController.Transition[] values()
for (ServiceController.Transition c : ServiceController.Transition.values()) System.out.println(c);
public static ServiceController.Transition valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean leavesRestState()
true
if this transition leaves a rest statepublic boolean entersRestState()
true
if this transition enters a rest statepublic boolean enters(ServiceController.State state)
state
- the statetrue
if the state is entered by this transitionpublic boolean exits(ServiceController.State state)
state
- the statetrue
if the state is exited by this transitionpublic boolean retains(ServiceController.State state)
state
- the statetrue
if the state is retainedpublic ServiceController.Substate getBefore()
public ServiceController.Substate getAfter()
public boolean in(ServiceController.Transition... transitions)
transitions
- the transitions to checktrue
if this transition is in the set; false
otherwisepublic String toString()
toString
in class Enum<ServiceController.Transition>
public boolean isForward()
Copyright © 2018 JBoss by Red Hat. All rights reserved.