Module org.elasticsearch.server
Class FileSettingsHealthTracker
java.lang.Object
org.elasticsearch.health.node.tracker.HealthTracker<FileSettingsHealthInfo>
org.elasticsearch.health.node.tracker.FileSettingsHealthTracker
Houses the current
FileSettingsHealthInfo and provides a means to publish it to the health node.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringWe want a length limit so we don't blow past the indexing limit in the case of a long description string. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddToRequestBuilder(UpdateHealthInfoCacheAction.Request.Builder builder, FileSettingsHealthInfo healthInfo) Add the health info to the request builder.voidprotected FileSettingsHealthInfoDetermine the health info for this health check.voidfailureOccurred(String description) voidvoidvoidMethods inherited from class org.elasticsearch.health.node.tracker.HealthTracker
addToRequestBuilder, checkHealthChanged, getLastDeterminedHealth, reset
-
Field Details
-
DESCRIPTION_LENGTH_LIMIT_KEY
We want a length limit so we don't blow past the indexing limit in the case of a long description string. This is anOperatorDynamicsetting so that if the truncation hampers troubleshooting efforts, the operator could override it and retry the operation without necessarily restarting the cluster.- See Also:
-
-
Constructor Details
-
FileSettingsHealthTracker
-
-
Method Details
-
getCurrentInfo
-
startOccurred
public void startOccurred() -
stopOccurred
public void stopOccurred() -
changeOccurred
public void changeOccurred() -
successOccurred
public void successOccurred() -
failureOccurred
-
determineCurrentHealth
Description copied from class:HealthTrackerDetermine the health info for this health check.- Specified by:
determineCurrentHealthin classHealthTracker<FileSettingsHealthInfo>- Returns:
- the health info.
-
addToRequestBuilder
protected void addToRequestBuilder(UpdateHealthInfoCacheAction.Request.Builder builder, FileSettingsHealthInfo healthInfo) Description copied from class:HealthTrackerAdd the health info to the request builder.- Specified by:
addToRequestBuilderin classHealthTracker<FileSettingsHealthInfo>- Parameters:
builder- the builder to add the health info to.healthInfo- the health info to add.
-