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.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
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 booleanprotected 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, waitForPersistentTaskMethods inherited from class org.elasticsearch.tasks.CancellableTask
addListener, ensureNotCancelled, getReasonCancelled, isCancelled, notifyIfCancelled, shouldCancelChildrenOnCancellationMethods 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: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)
-