Package org.terracotta.angela.common
Enum TerracottaVoterState
- java.lang.Object
-
- java.lang.Enum<TerracottaVoterState>
-
- org.terracotta.angela.common.TerracottaVoterState
-
- All Implemented Interfaces:
Serializable,Comparable<TerracottaVoterState>
public enum TerracottaVoterState extends Enum<TerracottaVoterState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTED_TO_ACTIVENOT_INSTALLEDSTARTEDSTOPPED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TerracottaVoterStatevalueOf(String name)Returns the enum constant of this type with the specified name.static TerracottaVoterState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_INSTALLED
public static final TerracottaVoterState NOT_INSTALLED
-
STARTED
public static final TerracottaVoterState STARTED
-
CONNECTED_TO_ACTIVE
public static final TerracottaVoterState CONNECTED_TO_ACTIVE
-
STOPPED
public static final TerracottaVoterState STOPPED
-
-
Method Detail
-
values
public static TerracottaVoterState[] 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 (TerracottaVoterState c : TerracottaVoterState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TerracottaVoterState 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
-
-