|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ServerState>
org.dasein.cloud.services.server.ServerState
public enum ServerState
The various possible states in which a server can exist. Implementors should do their best to map cloud-specific states to these states.
| Enum Constant Summary | |
|---|---|
PAUSED
The server is paused and not currently running or scheduled to run. |
|
PENDING
A request has been made to launch the server, but it is not currently fully operational. |
|
REBOOTING
The server is currently in the middle of a reboot and should be operational shortly. |
|
RUNNING
The server is fully operational as far as we know. |
|
STOPPING
The server is currentlyin the middle of being terminated and should not be expected to be available ever again. |
|
TERMINATED
The server has been terminated and is thus entirely useless and all state information is lost. |
|
| Method Summary | |
|---|---|
static ServerState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ServerState[] |
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 |
|---|
public static final ServerState PAUSED
public static final ServerState PENDING
public static final ServerState RUNNING
public static final ServerState REBOOTING
public static final ServerState STOPPING
public static final ServerState TERMINATED
| Method Detail |
|---|
public static ServerState[] values()
for (ServerState c : ServerState.values()) System.out.println(c);
public static ServerState valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
Copyright © 2009 enStratus Networks LLC – Available under the terms of the Artistic License 2.0.