Package org.jboss.as.server.suspend
Enum Class ServerSuspendController.Context
java.lang.Object
java.lang.Enum<ServerSuspendController.Context>
org.jboss.as.server.suspend.ServerSuspendController.Context
- All Implemented Interfaces:
Serializable,Comparable<ServerSuspendController.Context>,Constable,ServerResumeContext,ServerSuspendContext
- Enclosing interface:
- ServerSuspendController
public static enum ServerSuspendController.Context
extends Enum<ServerSuspendController.Context>
implements ServerSuspendContext
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the server is resuming as part of the startup sequence.booleanIndicates whether the server is suspending as part of the shutdown sequence.Returns the enum constant of this class with the specified name.static ServerSuspendController.Context[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STARTUP
-
RUNNING
-
SHUTDOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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.
-