public enum ServiceUnitState extends Enum<ServiceUnitState>
| Modifier and Type | Method and Description |
|---|---|
static String |
convertState(ServiceUnitState state)
Converts the service unit state to the equivalent
DeploymentService state.
|
static ServiceUnitState |
getEffectiveServiceAssemblyState(List<ServiceUnitState> suStates)
Compute the effective state of a Service Unit given a list of
Service Unit States.
|
static void |
main(String[] args) |
String |
toString() |
static ServiceUnitState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceUnitState |
valueOfDeploymentServiceState(String state)
Get the equivalent ServiceUnitState from DeploymentServiceMBean state.
|
static ServiceUnitState |
valueOfString(String valStr) |
static ServiceUnitState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceUnitState SHUTDOWN
public static final ServiceUnitState STOPPED
public static final ServiceUnitState STARTED
public static final ServiceUnitState UNKNOWN
public static ServiceUnitState[] values()
for (ServiceUnitState c : ServiceUnitState.values()) System.out.println(c);
public static ServiceUnitState 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 ServiceUnitState getEffectiveServiceAssemblyState(List<ServiceUnitState> suStates)
public static String convertState(ServiceUnitState state)
public static ServiceUnitState valueOfDeploymentServiceState(String state)
public String toString()
toString in class Enum<ServiceUnitState>public static ServiceUnitState valueOfString(String valStr)
valStr - - the string whose equivalent ServiceUnitState
instance is required. This operation ignores
the case, i.e. Stopped or STOPPED or sToPped
would return ServiceUnitState.STOPPEDpublic static void main(String[] args)
Copyright © 2011-2016 OpenESB Community. All Rights Reserved.