java.lang.Object
org.elasticsearch.tasks.Task
org.elasticsearch.tasks.CancellableTask
org.elasticsearch.persistent.AllocatedPersistentTask
org.elasticsearch.health.node.selection.HealthNode
- All Implemented Interfaces:
Traceable
Main component used for selecting the health node of the cluster
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.persistent.AllocatedPersistentTask
AllocatedPersistentTask.StateNested classes/interfaces inherited from class org.elasticsearch.tasks.CancellableTask
CancellableTask.CancellationListenerNested classes/interfaces inherited from class org.elasticsearch.tasks.Task
Task.Status -
Field Summary
FieldsFields inherited from class org.elasticsearch.tasks.Task
APM_TRACE_CONTEXT, HEADERS_TO_COPY, TRACE_ID, TRACE_PARENT, TRACE_PARENT_HTTP_HEADER, TRACE_START_TIME, TRACE_STATE, X_ELASTIC_PRODUCT_ORIGIN_HTTP_HEADER, X_ELASTIC_PROJECT_ID_HTTP_HEADER, X_OPAQUE_ID_HTTP_HEADER -
Method Summary
Modifier and TypeMethodDescriptionstatic DiscoveryNodefindHealthNode(ClusterState clusterState) findTask(ClusterState clusterState) protected voidCalled after the task is cancelled so that it can take any actions that it has to take.Methods inherited from class org.elasticsearch.persistent.AllocatedPersistentTask
getAllocationId, getFailure, getPersistentTaskId, getStatus, init, isCompleted, markAsCancelled, markAsCompleted, markAsFailed, markAsLocallyAborted, updatePersistentTaskState, updateProjectPersistentTaskState, waitForPersistentTaskMethods inherited from class org.elasticsearch.tasks.CancellableTask
addListener, ensureNotCancelled, getReasonCancelled, isCancelled, notifyIfCancelled, shouldCancelChildrenOnCancellation, toStringMethods inherited from class org.elasticsearch.tasks.Task
getAction, getDescription, getHeader, getId, getParentTaskId, getProjectId, getSpanId, getStartTime, getStartTimeNanos, getType, headers, result, result, taskInfo, taskInfo
-
Field Details
-
TASK_NAME
- See Also:
-
-
Method Details
-
onCancelled
protected void onCancelled()Description copied from class:CancellableTaskCalled after the task is cancelled so that it can take any actions that it has to take.- Overrides:
onCancelledin classCancellableTask
-
findTask
@Nullable public static PersistentTasksCustomMetadata.PersistentTask<?> findTask(ClusterState clusterState) -
findHealthNode
-