Package org.openstack4j.model.senlin
Enum ClusterStatus
- java.lang.Object
-
- java.lang.Enum<ClusterStatus>
-
- org.openstack4j.model.senlin.ClusterStatus
-
- All Implemented Interfaces:
Serializable,Comparable<ClusterStatus>
public enum ClusterStatus extends Enum<ClusterStatus>
Basic cluster status- Author:
- lion
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVEServer is runningCHECKINGServer is checkingCREATINGServer is creatingCRITICALServer is criticalDELETINGServer is deletingERRORFailed in some conditions,eg.INITInitialization of the serverRECOVERINGServer is recoveringRESIZINGServer is resizingUPDATINGServer is updatingWARNINGWarning
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClusterStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static ClusterStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INIT
public static final ClusterStatus INIT
Initialization of the server
-
ACTIVE
public static final ClusterStatus ACTIVE
Server is running
-
CREATING
public static final ClusterStatus CREATING
Server is creating
-
UPDATING
public static final ClusterStatus UPDATING
Server is updating
-
RESIZING
public static final ClusterStatus RESIZING
Server is resizing
-
DELETING
public static final ClusterStatus DELETING
Server is deleting
-
CHECKING
public static final ClusterStatus CHECKING
Server is checking
-
RECOVERING
public static final ClusterStatus RECOVERING
Server is recovering
-
CRITICAL
public static final ClusterStatus CRITICAL
Server is critical
-
ERROR
public static final ClusterStatus ERROR
Failed in some conditions,eg. failed to create
-
WARNING
public static final ClusterStatus WARNING
Warning
-
-
Method Detail
-
values
public static ClusterStatus[] 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 (ClusterStatus c : ClusterStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClusterStatus 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
-
-