public enum StatusJobState extends Enum<StatusJobState>
Enum Constant and Description |
---|
OFFLINE
Server is offline (not running, not responding and administrator port
is not alive).
|
OFFLINE_PORT
Server is offline (not responding but running and administrator port
is alive).
|
ONLINE
Server is running and responding.
|
SHUTDOWN
Server shutdown was requested but server is still running, responding
and administrator port is alive.
|
SHUTDOWN_PORT
Server shutdown was requested but server is still running, administrator
port is alive but server is not responding.
|
STARTUP
Server start or restart was requested but server is still not
responding and administrator port is not alive.
|
STARTUP_PORT
Server start or restart was requested but server is still not
bully responding but administrator port is alive.
|
UNKNOWN
Server status is unknown.
|
Modifier and Type | Field and Description |
---|---|
static int |
length
GlassFish version enumeration length.
|
private static Logger |
LOGGER
Logger instance for this class.
|
private static String |
OFFLINE_PORT_STR
A
String representation of OFFLINE_PORT value. |
private static String |
OFFLINE_STR
A
String representation of OFFLINE value. |
private static String |
ONLINE_STR
A
String representation of ONLINE value. |
private static String |
SHUTDOWN_PORT_STR
A
String representation of SHUTDOWN_PORT value. |
private static String |
SHUTDOWN_STR
A
String representation of SHUTDOWN value. |
private static String |
STARTUP_PORT_STR
A
String representation of STARTUP_PORT value. |
private static String |
STARTUP_STR
A
String representation of STARTUP value. |
private static Map<String,StatusJobState> |
stringValuesMap
Stored
String values for backward String
conversion. |
private static GlassFishStatus[] |
toGlassFishStatus
Server status check internal state to public GlassFish server status
translation table.
|
private static String |
UNKNOWN_STR
A
String representation of UNKNOWN value. |
Modifier and Type | Method and Description |
---|---|
(package private) GlassFishStatus |
toGlassFishStatus()
Convert
StatusJobState value to GlassFishStatus . |
String |
toString()
Convert
StatusJobState value to String . |
static StatusJobState |
toValue(String name)
Returns a
GlassFishStatus with a value represented by the
specified String . |
static StatusJobState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatusJobState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatusJobState UNKNOWN
public static final StatusJobState OFFLINE
public static final StatusJobState OFFLINE_PORT
public static final StatusJobState STARTUP
public static final StatusJobState STARTUP_PORT
public static final StatusJobState ONLINE
public static final StatusJobState SHUTDOWN
public static final StatusJobState SHUTDOWN_PORT
private static final Logger LOGGER
public static final int length
private static final String UNKNOWN_STR
String
representation of UNKNOWN value.private static final String OFFLINE_STR
String
representation of OFFLINE value.private static final String OFFLINE_PORT_STR
String
representation of OFFLINE_PORT value.private static final String STARTUP_STR
String
representation of STARTUP value.private static final String STARTUP_PORT_STR
String
representation of STARTUP_PORT value.private static final String ONLINE_STR
String
representation of ONLINE value.private static final String SHUTDOWN_STR
String
representation of SHUTDOWN value.private static final String SHUTDOWN_PORT_STR
String
representation of SHUTDOWN_PORT value.private static final Map<String,StatusJobState> stringValuesMap
String
values for backward String
conversion.private static final GlassFishStatus[] toGlassFishStatus
public static StatusJobState[] values()
for (StatusJobState c : StatusJobState.values()) System.out.println(c);
public static StatusJobState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static StatusJobState toValue(String name)
GlassFishStatus
with a value represented by the
specified String
. The GlassFishStatus
returned
represents existing value only if specified String
matches any String
returned by toString
method.
Otherwise null
value is returned.
name
- Value containing GlassFishStatus
toString
representation.GlassFishStatus
value represented
by String
or null
if value
was not recognized.public String toString()
StatusJobState
value to String
.
toString
in class Enum<StatusJobState>
String
representation of the value of this object.GlassFishStatus toGlassFishStatus()
StatusJobState
value to GlassFishStatus
.
GlassFishStatus
representation of the value
of this object.Copyright © 2013. All Rights Reserved.