public enum DiskUsageState extends java.lang.Enum<DiskUsageState>
Enum Constant and Description |
---|
FULL
Disk usage exceeds
GuardrailsConfig.getDataDiskUsagePercentageFailThreshold() . |
NOT_AVAILABLE
Either disk usage guardrail is not enabled or gossip state is not ready.
|
SPACIOUS
Disk usage is below both
GuardrailsConfig.getDataDiskUsagePercentageWarnThreshold() ()} and
GuardrailsConfig.getDataDiskUsagePercentageFailThreshold() . |
STUFFED
Disk usage exceeds
GuardrailsConfig.getDataDiskUsagePercentageWarnThreshold() but is below
GuardrailsConfig.getDataDiskUsagePercentageFailThreshold() . |
Modifier and Type | Method and 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.
|
public static final DiskUsageState NOT_AVAILABLE
public static final DiskUsageState SPACIOUS
GuardrailsConfig.getDataDiskUsagePercentageWarnThreshold()
()} and
GuardrailsConfig.getDataDiskUsagePercentageFailThreshold()
.public static final DiskUsageState STUFFED
GuardrailsConfig.getDataDiskUsagePercentageWarnThreshold()
but is below
GuardrailsConfig.getDataDiskUsagePercentageFailThreshold()
.public static final DiskUsageState FULL
GuardrailsConfig.getDataDiskUsagePercentageFailThreshold()
.public static DiskUsageState[] values()
for (DiskUsageState c : DiskUsageState.values()) System.out.println(c);
public static DiskUsageState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isFull()
public boolean isStuffed()
public boolean isStuffedOrFull()
public java.lang.String toString()
toString
in class java.lang.Enum<DiskUsageState>
Copyright © 2009- The Apache Software Foundation