public enum ServiceState extends Enum<ServiceState>
Enum Constant and Description |
---|
CRASHED |
INITIALIZED |
INITIALIZING |
NEW |
RUNNING |
STOP_PENDING |
STOPPED |
Modifier and Type | Method and Description |
---|---|
boolean |
isEnded() |
boolean |
isForInitiateShutdown() |
boolean |
isNewOrInitializing() |
static ServiceState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceState NEW
public static final ServiceState INITIALIZING
public static final ServiceState INITIALIZED
public static final ServiceState RUNNING
public static final ServiceState STOP_PENDING
public static final ServiceState STOPPED
public static final ServiceState CRASHED
public static ServiceState[] values()
for (ServiceState c : ServiceState.values()) System.out.println(c);
public static ServiceState 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 isNewOrInitializing()
public boolean isEnded()
public boolean isForInitiateShutdown()
Copyright © 2013. All Rights Reserved.