Enum MachineState
- java.lang.Object
-
- java.lang.Enum<MachineState>
-
- com.elastisys.scale.cloudpool.api.types.MachineState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MachineState>
public enum MachineState extends java.lang.Enum<MachineState>
The range of permissible execution states for aMachinein aMachinePool. The machine state, is the execution state of aMachine, as reported by the infrastructure.- See Also:
Machine,MachinePool
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PENDINGThe machine is in the process of being launched.REJECTEDThe machine request was rejected by the underlying infrastructure.REQUESTEDThe machine has been requested from the underlying infrastructure and the request is pending fulfillment.RUNNINGThe machine is launched.TERMINATEDThe machine has been stopped/shut down.TERMINATINGThe machine is in the process of being stopped/shut down.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MachineStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MachineState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REQUESTED
public static final MachineState REQUESTED
The machine has been requested from the underlying infrastructure and the request is pending fulfillment.
-
REJECTED
public static final MachineState REJECTED
The machine request was rejected by the underlying infrastructure.
-
PENDING
public static final MachineState PENDING
The machine is in the process of being launched.
-
RUNNING
public static final MachineState RUNNING
The machine is launched. However, the boot process may not yet have completed and the machine may not be operational (theMachine'sServiceStatemay provide more detailed state information).
-
TERMINATING
public static final MachineState TERMINATING
The machine is in the process of being stopped/shut down.
-
TERMINATED
public static final MachineState TERMINATED
The machine has been stopped/shut down.
-
-
Method Detail
-
values
public static MachineState[] 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 (MachineState c : MachineState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MachineState valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-