org.glassfish.embeddable
Enum GlassFish.Status

java.lang.Object
  extended by java.lang.Enum<GlassFish.Status>
      extended by 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 of GlassFish.


Enum Constant Summary
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
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INIT

public static final GlassFish.Status INIT
Initial state of a newly created GlassFish.

This will be the state just after GlassFishRuntime.newGlassFish() before performing any lifecycle operations.


STARTING

public static final GlassFish.Status STARTING
GlassFish is being started.

This will be the state after GlassFish.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 once GlassFish.start() has fully started the GlassFish.


STOPPING

public static final GlassFish.Status STOPPING
GlassFish is being stopped.

This will be the state after GlassFish.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 after GlassFish.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 after GlassFish.dispose() or GlassFishRuntime.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 name
NullPointerException - if the argument is null


Copyright © 2012 GlassFish Community. All Rights Reserved.