Package org.elasticsearch.action.search
Class SearchShardTask
java.lang.Object
org.elasticsearch.tasks.Task
org.elasticsearch.tasks.CancellableTask
org.elasticsearch.action.search.SearchShardTask
public class SearchShardTask extends CancellableTask
Task storing information about a currently running search shard request.
See
ShardSearchRequest, ShardFetchSearchRequest, ...-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SearchShardTask(long id, java.lang.String type, java.lang.String action, java.lang.String description, TaskId parentTaskId, java.util.Map<java.lang.String,java.lang.String> headers) -
Method Summary
Modifier and Type Method Description booleanshouldCancelChildrenOnCancellation()Returns true if this task can potentially have children that need to be cancelled when it parent is cancelled.Methods inherited from class org.elasticsearch.tasks.CancellableTask
cancelOnParentLeaving, getReasonCancelled, isCancelled, onCancelledMethods inherited from class org.elasticsearch.tasks.Task
getAction, getDescription, getHeader, getId, getParentTaskId, getStartTime, getStatus, getType, result, result, taskInfo, taskInfo
-
Constructor Details
-
SearchShardTask
public SearchShardTask(long id, java.lang.String type, java.lang.String action, java.lang.String description, TaskId parentTaskId, java.util.Map<java.lang.String,java.lang.String> headers)
-
-
Method Details
-
shouldCancelChildrenOnCancellation
public boolean shouldCancelChildrenOnCancellation()Description copied from class:CancellableTaskReturns true if this task can potentially have children that need to be cancelled when it parent is cancelled.- Specified by:
shouldCancelChildrenOnCancellationin classCancellableTask
-