Package org.apache.cassandra.repair
Enum Class RepairParallelism
- All Implemented Interfaces:
Serializable,Comparable<RepairParallelism>,Constable
Specify the degree of parallelism when calculating the merkle trees in a repair job.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOne node per data center at a timeAll nodes at the same timeOne node at a time -
Method Summary
Modifier and TypeMethodDescriptionstatic RepairParallelismReturn RepairParallelism that match given name.getName()toString()static RepairParallelismReturns the enum constant of this class with the specified name.static RepairParallelism[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SEQUENTIAL
One node at a time -
PARALLEL
All nodes at the same time -
DATACENTER_AWARE
One node per data center at a time
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
fromName
Return RepairParallelism that match given name. If name is null, or does not match any, this returns default "sequential" parallelism,- Parameters:
name- name of repair parallelism- Returns:
- RepairParallelism that match given name
-
getName
-
toString
- Overrides:
toStringin classEnum<RepairParallelism>
-