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
HEADERS_TO_COPY, TRACE_ID, TRACE_PARENT_HTTP_HEADER, TRACE_STATE, X_ELASTIC_PRODUCT_ORIGIN_HTTP_HEADER, X_OPAQUE_ID_HTTP_HEADER
-
Method Summary
Modifier and TypeMethodDescriptionfindTask
(ClusterState clusterState) static boolean
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
-
FEATURE_FLAG_ENABLED
public static final boolean FEATURE_FLAG_ENABLED -
TASK_NAME
- See Also:
-
-
Method Details
-
isEnabled
public static boolean isEnabled() -
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)
-