java.lang.Object
org.elasticsearch.tasks.Task
org.elasticsearch.tasks.CancellableTask
org.elasticsearch.persistent.AllocatedPersistentTask
org.elasticsearch.health.node.selection.HealthNode
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.State
Nested classes/interfaces inherited from class org.elasticsearch.tasks.CancellableTask
CancellableTask.CancellationListener
Nested classes/interfaces inherited from class org.elasticsearch.tasks.Task
Task.Status
-
Field Summary
Fields 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_OPAQUE_ID_HTTP_HEADER
-
Method Summary
Modifier and TypeMethodDescriptionstatic DiscoveryNode
findHealthNode
(ClusterState clusterState) findTask
(ClusterState clusterState) protected void
Called 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, waitForPersistentTask
Methods inherited from class org.elasticsearch.tasks.CancellableTask
addListener, ensureNotCancelled, getReasonCancelled, isCancelled, notifyIfCancelled, shouldCancelChildrenOnCancellation
Methods inherited from class org.elasticsearch.tasks.Task
getAction, getDescription, getHeader, getId, getParentTaskId, getStartTime, getStartTimeNanos, getType, headers, result, result, taskInfo, taskInfo, toString
-
Field Details
-
TASK_NAME
- See Also:
-
-
Method Details
-
onCancelled
protected void onCancelled()Description copied from class:CancellableTask
Called after the task is cancelled so that it can take any actions that it has to take.- Overrides:
onCancelled
in classCancellableTask
-
findTask
@Nullable public static PersistentTasksCustomMetadata.PersistentTask<?> findTask(ClusterState clusterState) -
findHealthNode
-