public static enum ServiceController.State extends Enum<ServiceController.State>
Enum Constant and Description |
---|
DOWN
Down.
|
REMOVED
Removed from the container.
|
START_FAILED
Start failed, or was cancelled.
|
STARTING
Service is starting.
|
STOPPING
Service is stopping.
|
UP
Up.
|
Modifier and Type | Method and Description |
---|---|
boolean |
in(ServiceController.State... states)
Determine if this state is one of the given states.
|
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.
|
public static final ServiceController.State DOWN
public static final ServiceController.State STARTING
DOWN
state. This state may not be left until
the start
method has finished or failed.public static final ServiceController.State START_FAILED
DOWN
state.public static final ServiceController.State UP
public static final ServiceController.State STOPPING
STARTING
state. This state may not be left until
all dependents are DOWN
and the stop
method has finished.public static final ServiceController.State REMOVED
public static ServiceController.State[] values()
for (ServiceController.State c : ServiceController.State.values()) System.out.println(c);
public static ServiceController.State 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 in(ServiceController.State... states)
states
- the states to checktrue
if this state is in the set; false
otherwiseCopyright © 2017 JBoss by Red Hat. All rights reserved.