Module org.elasticsearch.server
Class RepositoriesHealthTracker
java.lang.Object
org.elasticsearch.health.node.tracker.HealthTracker<RepositoriesHealthInfo>
org.elasticsearch.health.node.tracker.RepositoriesHealthTracker
Determines the health of repositories on this node.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.health.node.tracker.HealthTracker
HealthTracker.HealthProgress<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToRequestBuilder
(UpdateHealthInfoCacheAction.Request.Builder builder, RepositoriesHealthInfo healthInfo) Add the health info to the request builder.Determine the health of the repositories on this node.Methods inherited from class org.elasticsearch.health.node.tracker.HealthTracker
getLastReportedValue, reset, trackHealth, updateLastReportedHealth
-
Constructor Details
-
RepositoriesHealthTracker
-
-
Method Details
-
checkCurrentHealth
Determine the health of the repositories on this node. Do so by checking the current collection of registered repositories.- Specified by:
checkCurrentHealth
in classHealthTracker<RepositoriesHealthInfo>
- Returns:
- the current repositories health on this node.
-
addToRequestBuilder
public void addToRequestBuilder(UpdateHealthInfoCacheAction.Request.Builder builder, RepositoriesHealthInfo healthInfo) Description copied from class:HealthTracker
Add the health info to the request builder.- Specified by:
addToRequestBuilder
in classHealthTracker<RepositoriesHealthInfo>
- Parameters:
builder
- the builder to add the health info to.healthInfo
- the health info to add.
-