Enum InstanceStatus
- All Implemented Interfaces:
Serializable
,Comparable<InstanceStatus>
,java.lang.constant.Constable
Describes the status of a instance.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe instance is in the process of being provisioned, or rebooted.The instance is running.The instance has been stopped.The instance is in the process of being stopped.The instance has been terminated and can no longer be used.The instance is in the process of being terminated.The instance is unavailable due to a process external to YellowDog e.g.The status of the instance is unknown. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isAlive()
static InstanceStatus
Returns the enum constant of this type with the specified name.static InstanceStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PENDING
The instance is in the process of being provisioned, or rebooted. -
RUNNING
The instance is running. -
STOPPING
The instance is in the process of being stopped. -
STOPPED
The instance has been stopped. -
TERMINATING
The instance is in the process of being terminated. -
TERMINATED
The instance has been terminated and can no longer be used. -
UNAVAILABLE
The instance is unavailable due to a process external to YellowDog e.g. creating an image or repairing the instance. -
UNKNOWN
The status of the instance is unknown. The instance can be restarted to try to recover or terminated.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
isAlive
public boolean isAlive()
-