Enum Class RepairParallelism

java.lang.Object
java.lang.Enum<RepairParallelism>
org.apache.cassandra.repair.RepairParallelism
All Implemented Interfaces:
Serializable, Comparable<RepairParallelism>, Constable

public enum RepairParallelism extends Enum<RepairParallelism>
Specify the degree of parallelism when calculating the merkle trees in a repair job.
  • Enum Constant Details

    • SEQUENTIAL

      public static final RepairParallelism SEQUENTIAL
      One node at a time
    • PARALLEL

      public static final RepairParallelism PARALLEL
      All nodes at the same time
    • DATACENTER_AWARE

      public static final RepairParallelism DATACENTER_AWARE
      One node per data center at a time
  • Method Details

    • values

      public static RepairParallelism[] 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

      public static RepairParallelism valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromName

      public static RepairParallelism fromName(String name)
      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

      public String getName()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<RepairParallelism>