Module org.elasticsearch.server
Class DiskHealthTracker
java.lang.Object
org.elasticsearch.health.node.tracker.HealthTracker<DiskHealthInfo>
org.elasticsearch.health.node.tracker.DiskHealthTracker
Determines the disk health of this node by checking if it exceeds the thresholds defined in the health metadata.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.health.node.tracker.HealthTracker
HealthTracker.HealthProgress<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToRequestBuilder
(UpdateHealthInfoCacheAction.Request.Builder builder, DiskHealthInfo healthInfo) Add the health info to the request builder.Determines the disk health of this node by checking if it exceeds the thresholds defined in the health metadata.Methods inherited from class org.elasticsearch.health.node.tracker.HealthTracker
getLastReportedValue, reset, trackHealth, updateLastReportedHealth
-
Constructor Details
-
DiskHealthTracker
-
-
Method Details
-
checkCurrentHealth
Determines the disk health of this node by checking if it exceeds the thresholds defined in the health metadata.- Specified by:
checkCurrentHealth
in classHealthTracker<DiskHealthInfo>
- Returns:
- the current disk health info.
-
addToRequestBuilder
public void addToRequestBuilder(UpdateHealthInfoCacheAction.Request.Builder builder, DiskHealthInfo healthInfo) Description copied from class:HealthTracker
Add the health info to the request builder.- Specified by:
addToRequestBuilder
in classHealthTracker<DiskHealthInfo>
- Parameters:
builder
- the builder to add the health info to.healthInfo
- the health info to add.
-