Enum DiskUsageState
- java.lang.Object
-
- java.lang.Enum<DiskUsageState>
-
- org.apache.cassandra.service.disk.usage.DiskUsageState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DiskUsageState>
public enum DiskUsageState extends java.lang.Enum<DiskUsageState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FULL
Disk usage exceedsGuardrailsConfig.getDataDiskUsagePercentageFailThreshold()
.NOT_AVAILABLE
Either disk usage guardrail is not enabled or gossip state is not ready.SPACIOUS
Disk usage is below bothGuardrailsConfig.getDataDiskUsagePercentageWarnThreshold()
()} andGuardrailsConfig.getDataDiskUsagePercentageFailThreshold()
.STUFFED
Disk usage exceedsGuardrailsConfig.getDataDiskUsagePercentageWarnThreshold()
but is belowGuardrailsConfig.getDataDiskUsagePercentageFailThreshold()
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isFull()
boolean
isStuffed()
boolean
isStuffedOrFull()
java.lang.String
toString()
static DiskUsageState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DiskUsageState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_AVAILABLE
public static final DiskUsageState NOT_AVAILABLE
Either disk usage guardrail is not enabled or gossip state is not ready.
-
SPACIOUS
public static final DiskUsageState SPACIOUS
Disk usage is below bothGuardrailsConfig.getDataDiskUsagePercentageWarnThreshold()
()} andGuardrailsConfig.getDataDiskUsagePercentageFailThreshold()
.
-
STUFFED
public static final DiskUsageState STUFFED
Disk usage exceedsGuardrailsConfig.getDataDiskUsagePercentageWarnThreshold()
but is belowGuardrailsConfig.getDataDiskUsagePercentageFailThreshold()
.
-
FULL
public static final DiskUsageState FULL
Disk usage exceedsGuardrailsConfig.getDataDiskUsagePercentageFailThreshold()
.
-
-
Method Detail
-
values
public static DiskUsageState[] 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 (DiskUsageState c : DiskUsageState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DiskUsageState 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
-
isFull
public boolean isFull()
-
isStuffed
public boolean isStuffed()
-
isStuffedOrFull
public boolean isStuffedOrFull()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<DiskUsageState>
-
-