Package org.openstack4j.model.compute
Enum Action
- java.lang.Object
-
- java.lang.Enum<Action>
-
- org.openstack4j.model.compute.Action
-
- All Implemented Interfaces:
Serializable,Comparable<Action>
public enum Action extends Enum<Action>
Basic Actions against a Live Server- Author:
- Jeremy Unruh
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FORCEDELETEForce delete the serverLOCKLock the serverPAUSEPause the serverRESCUERescue the serverRESUMEResume a suspended serverSHELVEShelve the serverSHELVE_OFFLOADRemove a shelved instance from the compute nodeSTARTStart the serverSTOPStop the serverSUSPENDSuspend a serverUNLOCKUnlock a locked serverUNPAUSEUnPause the paused serverUNRESCUEUnrescue the serverUNSHELVEUnshelve the server
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ActionvalueOf(String name)Returns the enum constant of this type with the specified name.static Action[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PAUSE
public static final Action PAUSE
Pause the server
-
UNPAUSE
public static final Action UNPAUSE
UnPause the paused server
-
STOP
public static final Action STOP
Stop the server
-
START
public static final Action START
Start the server
-
LOCK
public static final Action LOCK
Lock the server
-
UNLOCK
public static final Action UNLOCK
Unlock a locked server
-
SUSPEND
public static final Action SUSPEND
Suspend a server
-
RESUME
public static final Action RESUME
Resume a suspended server
-
RESCUE
public static final Action RESCUE
Rescue the server
-
UNRESCUE
public static final Action UNRESCUE
Unrescue the server
-
SHELVE
public static final Action SHELVE
Shelve the server
-
SHELVE_OFFLOAD
public static final Action SHELVE_OFFLOAD
Remove a shelved instance from the compute node
-
UNSHELVE
public static final Action UNSHELVE
Unshelve the server
-
FORCEDELETE
public static final Action FORCEDELETE
Force delete the server
-
-
Method Detail
-
values
public static Action[] 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 (Action c : Action.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Action 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
-
-