public enum ServiceStatus extends Enum<ServiceStatus>
| Enum Constant and Description |
|---|
INITIAL |
RUNNING |
STARTING |
STOPPED |
STOPPING |
| Modifier and Type | Method and Description |
|---|---|
void |
assertInitialOrStopped(Class<?> cl,
String action) |
void |
assertRunning(Class<?> cl,
String action) |
boolean |
isStoppingOrStopped() |
static ServiceStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceStatus INITIAL
public static final ServiceStatus STARTING
public static final ServiceStatus RUNNING
public static final ServiceStatus STOPPING
public static final ServiceStatus STOPPED
public static ServiceStatus[] values()
for (ServiceStatus c : ServiceStatus.values()) System.out.println(c);
public static ServiceStatus 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 void assertInitialOrStopped(Class<?> cl, String action) throws IllegalStateException
IllegalStateExceptionpublic void assertRunning(Class<?> cl, String action) throws IllegalStateException
IllegalStateExceptionpublic boolean isStoppingOrStopped()
Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.