Package org.xipki.ca.api.mgmt
Enum CaSystemStatus
- java.lang.Object
-
- java.lang.Enum<CaSystemStatus>
-
- org.xipki.ca.api.mgmt.CaSystemStatus
-
- All Implemented Interfaces:
Serializable,Comparable<CaSystemStatus>
public enum CaSystemStatus extends Enum<CaSystemStatus>
CA system status enum.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERRORINITIALIZINGLOCK_FAILEDNOT_INITEDSTARTED_AS_MASTERSTARTED_AS_SLAVE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CaSystemStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static CaSystemStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTED_AS_MASTER
public static final CaSystemStatus STARTED_AS_MASTER
-
STARTED_AS_SLAVE
public static final CaSystemStatus STARTED_AS_SLAVE
-
NOT_INITED
public static final CaSystemStatus NOT_INITED
-
INITIALIZING
public static final CaSystemStatus INITIALIZING
-
LOCK_FAILED
public static final CaSystemStatus LOCK_FAILED
-
ERROR
public static final CaSystemStatus ERROR
-
-
Method Detail
-
values
public static CaSystemStatus[] 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 (CaSystemStatus c : CaSystemStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CaSystemStatus 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
-
-