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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddToRequestBuilder(UpdateHealthInfoCacheAction.Request.Builder builder, DiskHealthInfo healthInfo) Add the health info to the request builder.protected DiskHealthInfoDetermines 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
addToRequestBuilder, checkHealthChanged, getLastDeterminedHealth, reset
-
Constructor Details
-
DiskHealthTracker
-
-
Method Details
-
determineCurrentHealth
Determines the disk health of this node by checking if it exceeds the thresholds defined in the health metadata.- Specified by:
determineCurrentHealthin classHealthTracker<DiskHealthInfo>- Returns:
- the current disk health info.
-
addToRequestBuilder
protected void addToRequestBuilder(UpdateHealthInfoCacheAction.Request.Builder builder, DiskHealthInfo healthInfo) Description copied from class:HealthTrackerAdd the health info to the request builder.- Specified by:
addToRequestBuilderin classHealthTracker<DiskHealthInfo>- Parameters:
builder- the builder to add the health info to.healthInfo- the health info to add.
-