Package org.glassfish.embeddable
Enum Class GlassFish.Status
- All Implemented Interfaces:
Serializable,Comparable<GlassFish.Status>,java.lang.constant.Constable
- Enclosing interface:
- GlassFish
Represents the status of
GlassFish.-
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 TypeMethodDescriptionstatic GlassFish.StatusReturns the enum constant of this class with the specified name.static GlassFish.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INIT
Initial state of a newly created GlassFish. This will be the state just afterGlassFishRuntime.newGlassFish()before performing any lifecycle operations. -
STARTING
GlassFish is being started. This will be the state afterGlassFish.start()has been called until the GlassFish is fully started. -
STARTED
GlassFish is up and running. This will be the state onceGlassFish.start()has fully started the GlassFish. -
STOPPING
GlassFish is being stopped. This will be the state afterGlassFish.stop()has been called until the GlassFish is fully stopped. -
STOPPED
GlassFish is stopped. This will be the state afterGlassFish.stop()has fully stopped the GlassFish. -
DISPOSED
GlassFish is disposed and ready to be garbage collected. This will be the state afterGlassFish.dispose()orGlassFishRuntime.shutdown()has been called.
-
-
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
-