Package org.glassfish.embeddable
Enum GlassFish.Status
- java.lang.Object
-
- java.lang.Enum<GlassFish.Status>
-
- org.glassfish.embeddable.GlassFish.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<GlassFish.Status>
- Enclosing interface:
- GlassFish
public static enum GlassFish.Status extends Enum<GlassFish.Status>
Represents the status ofGlassFish
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISPOSED
GlassFish is disposed and ready to be garbage collected.INIT
Initial state of a newly created GlassFish.STARTED
GlassFish is up and running.STARTING
GlassFish is being started.STOPPED
GlassFish is stopped.STOPPING
GlassFish is being stopped.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GlassFish.Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static GlassFish.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INIT
public static final GlassFish.Status INIT
Initial state of a newly created GlassFish. This will be the state just afterGlassFishRuntime.newGlassFish()
before performing any lifecycle operations.
-
STARTING
public static final GlassFish.Status STARTING
GlassFish is being started. This will be the state afterGlassFish.start()
has been called until the GlassFish is fully started.
-
STARTED
public static final GlassFish.Status STARTED
GlassFish is up and running. This will be the state onceGlassFish.start()
has fully started the GlassFish.
-
STOPPING
public static final GlassFish.Status STOPPING
GlassFish is being stopped. This will be the state afterGlassFish.stop()
has been called until the GlassFish is fully stopped.
-
STOPPED
public static final GlassFish.Status STOPPED
GlassFish is stopped. This will be the state afterGlassFish.stop()
has fully stopped the GlassFish.
-
DISPOSED
public static final GlassFish.Status DISPOSED
GlassFish is disposed and ready to be garbage collected. This will be the state afterGlassFish.dispose()
orGlassFishRuntime.shutdown()
has been called.
-
-
Method Detail
-
values
public static GlassFish.Status[] 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 (GlassFish.Status c : GlassFish.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GlassFish.Status 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
-
-