Class DiskThresholdSettings
- java.lang.Object
-
- org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings
-
public class DiskThresholdSettings extends Object
A container to keep settings for disk thresholds up to date with cluster setting changes.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTO_RELEASE_INDEX_ENABLED_KEYstatic Setting<String>CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_WATERMARK_SETTINGstatic Setting<Boolean>CLUSTER_ROUTING_ALLOCATION_DISK_THRESHOLD_ENABLED_SETTINGstatic Setting<String>CLUSTER_ROUTING_ALLOCATION_HIGH_DISK_WATERMARK_SETTINGstatic Setting<Boolean>CLUSTER_ROUTING_ALLOCATION_INCLUDE_RELOCATIONS_SETTINGstatic Setting<String>CLUSTER_ROUTING_ALLOCATION_LOW_DISK_WATERMARK_SETTINGstatic Setting<TimeValue>CLUSTER_ROUTING_ALLOCATION_REROUTE_INTERVAL_SETTING
-
Constructor Summary
Constructors Constructor Description DiskThresholdSettings(Settings settings, ClusterSettings clusterSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteSizeValuegetFreeBytesThresholdFloodStage()ByteSizeValuegetFreeBytesThresholdHigh()ByteSizeValuegetFreeBytesThresholdLow()DoublegetFreeDiskThresholdFloodStage()DoublegetFreeDiskThresholdHigh()DoublegetFreeDiskThresholdLow()StringgetHighWatermarkRaw()Gets the raw (uninterpreted) high watermark value as found in the settings.StringgetLowWatermarkRaw()Gets the raw (uninterpreted) low watermark value as found in the settings.TimeValuegetRerouteInterval()booleanincludeRelocations()booleanisAutoReleaseIndexEnabled()booleanisEnabled()
-
-
-
Field Detail
-
CLUSTER_ROUTING_ALLOCATION_DISK_THRESHOLD_ENABLED_SETTING
public static final Setting<Boolean> CLUSTER_ROUTING_ALLOCATION_DISK_THRESHOLD_ENABLED_SETTING
-
CLUSTER_ROUTING_ALLOCATION_LOW_DISK_WATERMARK_SETTING
public static final Setting<String> CLUSTER_ROUTING_ALLOCATION_LOW_DISK_WATERMARK_SETTING
-
CLUSTER_ROUTING_ALLOCATION_HIGH_DISK_WATERMARK_SETTING
public static final Setting<String> CLUSTER_ROUTING_ALLOCATION_HIGH_DISK_WATERMARK_SETTING
-
CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_WATERMARK_SETTING
public static final Setting<String> CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_WATERMARK_SETTING
-
CLUSTER_ROUTING_ALLOCATION_INCLUDE_RELOCATIONS_SETTING
public static final Setting<Boolean> CLUSTER_ROUTING_ALLOCATION_INCLUDE_RELOCATIONS_SETTING
-
CLUSTER_ROUTING_ALLOCATION_REROUTE_INTERVAL_SETTING
public static final Setting<TimeValue> CLUSTER_ROUTING_ALLOCATION_REROUTE_INTERVAL_SETTING
-
AUTO_RELEASE_INDEX_ENABLED_KEY
public static final String AUTO_RELEASE_INDEX_ENABLED_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DiskThresholdSettings
public DiskThresholdSettings(Settings settings, ClusterSettings clusterSettings)
-
-
Method Detail
-
getLowWatermarkRaw
public String getLowWatermarkRaw()
Gets the raw (uninterpreted) low watermark value as found in the settings.
-
getHighWatermarkRaw
public String getHighWatermarkRaw()
Gets the raw (uninterpreted) high watermark value as found in the settings.
-
getFreeDiskThresholdLow
public Double getFreeDiskThresholdLow()
-
getFreeDiskThresholdHigh
public Double getFreeDiskThresholdHigh()
-
getFreeBytesThresholdLow
public ByteSizeValue getFreeBytesThresholdLow()
-
getFreeBytesThresholdHigh
public ByteSizeValue getFreeBytesThresholdHigh()
-
getFreeDiskThresholdFloodStage
public Double getFreeDiskThresholdFloodStage()
-
getFreeBytesThresholdFloodStage
public ByteSizeValue getFreeBytesThresholdFloodStage()
-
isAutoReleaseIndexEnabled
public boolean isAutoReleaseIndexEnabled()
-
includeRelocations
public boolean includeRelocations()
-
isEnabled
public boolean isEnabled()
-
getRerouteInterval
public TimeValue getRerouteInterval()
-
-