Package org.jboss.as.server.suspend
Enum ServerSuspendController.Context
- java.lang.Object
-
- java.lang.Enum<ServerSuspendController.Context>
-
- org.jboss.as.server.suspend.ServerSuspendController.Context
-
- All Implemented Interfaces:
Serializable,Comparable<ServerSuspendController.Context>,ServerResumeContext,ServerSuspendContext
- Enclosing interface:
- ServerSuspendController
public static enum ServerSuspendController.Context extends Enum<ServerSuspendController.Context> implements ServerSuspendContext
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisStarting()Indicates whether the server is resuming as part of the startup sequence.booleanisStopping()Indicates whether the server is suspending as part of the shutdown sequence.static ServerSuspendController.ContextvalueOf(String name)Returns the enum constant of this type with the specified name.static ServerSuspendController.Context[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTUP
public static final ServerSuspendController.Context STARTUP
-
RUNNING
public static final ServerSuspendController.Context RUNNING
-
SHUTDOWN
public static final ServerSuspendController.Context SHUTDOWN
-
-
Method Detail
-
values
public static ServerSuspendController.Context[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ServerSuspendController.Context c : ServerSuspendController.Context.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServerSuspendController.Context valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isStarting
public boolean isStarting()
Description copied from interface:ServerResumeContextIndicates whether the server is resuming as part of the startup sequence.- Specified by:
isStartingin interfaceServerResumeContext- Returns:
- true, if the server is starting, false otherwise.
-
isStopping
public boolean isStopping()
Description copied from interface:ServerSuspendContextIndicates whether the server is suspending as part of the shutdown sequence.- Specified by:
isStoppingin interfaceServerSuspendContext- Returns:
- true, if the server is stopping, false otherwise.
-
-