public enum ComponentState extends Enum<ComponentState>
| Enum Constant and Description |
|---|
LOADED
Loaded status.
|
SHUTDOWN |
STARTED |
STOPPED |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static ComponentState |
computeEffectiveState(List<ComponentState> states)
Compute the effective state of the Component from a list of Component States
If one or more state is a STARTED state the state is STARTED
If one or more state is STOPPED state and there is no STARTED state
the state is STOPPED
If there are no STOPPED or STARTED states the state is SHUTDOWN
|
static String |
getLifeCycleState(ComponentState state)
Given the ComponentState convert it to a LifeCycleMBean state string.
|
static void |
main(String[] args) |
String |
toString() |
static ComponentState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComponentState |
valueOfLifeCycleState(String state)
Given the LifeCycleMBean state string convert it to a ComponentState.
|
static ComponentState |
valueOfString(String valStr) |
static ComponentState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComponentState LOADED
public static final ComponentState SHUTDOWN
public static final ComponentState STOPPED
public static final ComponentState STARTED
public static final ComponentState UNKNOWN
public static ComponentState[] values()
for (ComponentState c : ComponentState.values()) System.out.println(c);
public static ComponentState 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 static ComponentState computeEffectiveState(List<ComponentState> states)
states - - a List of states.public static ComponentState valueOfLifeCycleState(String state)
public static String getLifeCycleState(ComponentState state)
public String toString()
toString in class Enum<ComponentState>public static ComponentState valueOfString(String valStr)
valStr - - the string whose equivalent ComponentState
instance is required. This operation ignores
the case, i.e. Stopped or STOPPED or sToPped
would return ComponentState.STOPPEDpublic static void main(String[] args)
Copyright © 2011-2016 OpenESB Community. All Rights Reserved.