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 void
addToRequestBuilder
(UpdateHealthInfoCacheAction.Request.Builder builder, DiskHealthInfo healthInfo) Add the health info to the request builder.protected DiskHealthInfo
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
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:
determineCurrentHealth
in classHealthTracker<DiskHealthInfo>
- Returns:
- the current disk health info.
-
addToRequestBuilder
protected 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.
-