Enum Class AutoRepairConfig.RepairType
java.lang.Object
java.lang.Enum<AutoRepairConfig.RepairType>
org.apache.cassandra.repair.autorepair.AutoRepairConfig.RepairType
- All Implemented Interfaces:
Serializable,Comparable<AutoRepairConfig.RepairType>,Constable
- Enclosing class:
- AutoRepairConfig
public static enum AutoRepairConfig.RepairType
extends Enum<AutoRepairConfig.RepairType>
implements Serializable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic AutoRepairStategetAutoRepairState(AutoRepairConfig.RepairType repairType, AutoRepairConfig config) static AutoRepairConfig.RepairTypeCase-insensitive parsing of the repair type string intoAutoRepairConfig.RepairTypestatic AutoRepairConfig.RepairTypeReturns the enum constant of this class with the specified name.static AutoRepairConfig.RepairType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FULL
-
INCREMENTAL
-
PREVIEW_REPAIRED
-
-
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
-
getConfigName
- Returns:
- Format of the repair type as it should be represented in configuration. Canonically this is the enum name in lowerCase.
-
getAutoRepairState
public static AutoRepairState getAutoRepairState(AutoRepairConfig.RepairType repairType, AutoRepairConfig config) -
parse
Case-insensitive parsing of the repair type string intoAutoRepairConfig.RepairType- Parameters:
repairTypeStr- the repair type string- Returns:
- the
AutoRepairConfig.RepairTyperepresented by therepairTypeStrstring - Throws:
IllegalArgumentException- when the repair type string does not match any repair type
-