Package org.apache.cassandra.service
Enum StorageService.Mode
- java.lang.Object
-
- java.lang.Enum<StorageService.Mode>
-
- org.apache.cassandra.service.StorageService.Mode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<StorageService.Mode>
- Enclosing class:
- StorageService
public static enum StorageService.Mode extends java.lang.Enum<StorageService.Mode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DECOMMISSION_FAILED
DECOMMISSIONED
DRAINED
DRAINING
JOINING
JOINING_FAILED
LEAVING
MOVING
NORMAL
STARTING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StorageService.Mode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StorageService.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTING
public static final StorageService.Mode STARTING
-
NORMAL
public static final StorageService.Mode NORMAL
-
JOINING
public static final StorageService.Mode JOINING
-
JOINING_FAILED
public static final StorageService.Mode JOINING_FAILED
-
LEAVING
public static final StorageService.Mode LEAVING
-
DECOMMISSIONED
public static final StorageService.Mode DECOMMISSIONED
-
DECOMMISSION_FAILED
public static final StorageService.Mode DECOMMISSION_FAILED
-
MOVING
public static final StorageService.Mode MOVING
-
DRAINING
public static final StorageService.Mode DRAINING
-
DRAINED
public static final StorageService.Mode DRAINED
-
-
Method Detail
-
values
public static StorageService.Mode[] 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 (StorageService.Mode c : StorageService.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StorageService.Mode valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-