Enum Class VirtualMachineState

java.lang.Object
java.lang.Enum<VirtualMachineState>
net.solarnetwork.central.cloud.domain.VirtualMachineState
All Implemented Interfaces:
Serializable, Comparable<VirtualMachineState>, Constable

public enum VirtualMachineState extends Enum<VirtualMachineState>
Enum of possible states for a virtual machine to be in.
  • Enum Constant Details

    • Starting

      public static final VirtualMachineState Starting
      The machine is starting.
    • Running

      public static final VirtualMachineState Running
      The machine is running.
    • Stopped

      public static final VirtualMachineState Stopped
      The machine is not running, but could be started again.
    • Stopping

      public static final VirtualMachineState Stopping
      The machine is shutting down, either to end in the Stopped or Terminated states.
    • Terminated

      public static final VirtualMachineState Terminated
      The machine is terminated, and cannot be started again.
    • Unknown

      public static final VirtualMachineState Unknown
      The machine is in an unknown state.
  • Method Details

    • values

      public static VirtualMachineState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VirtualMachineState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null