Package org.elasticsearch.tasks
Interface TaskAwareRequest
-
- All Known Implementing Classes:
AbstractBulkByScrollRequest,AbstractBulkIndexByScrollRequest,AcknowledgedRequest,ActionRequest,AddVotingConfigExclusionsRequest,AnalyzeAction.Request,ApplyCommitRequest,BaseNodeRequest,BaseNodesRequest,BaseTasksRequest,BasicReplicationRequest,BroadcastRequest,BroadcastShardRequest,BulkRequest,BulkShardRequest,BytesTransportRequest,CancelTasksRequest,CleanupRepositoryRequest,ClearIndicesCacheRequest,ClearScrollRequest,ClearVotingConfigExclusionsRequest,CloseIndexRequest,CloseJobRequest,ClusterAllocationExplainRequest,ClusterGetSettingsRequest,ClusterHealthRequest,ClusterInfoRequest,ClusterRerouteRequest,ClusterSearchShardsRequest,ClusterStateRequest,ClusterStatsRequest,ClusterUpdateSettingsRequest,CompletionPersistentTaskAction.Request,CountRequest,CreateIndexRequest,CreateSnapshotRequest,DeleteByQueryRequest,DeleteCalendarEventRequest,DeleteCalendarJobRequest,DeleteCalendarRequest,DeleteDatafeedRequest,DeleteExpiredDataRequest,DeleteForecastRequest,DeleteIndexRequest,DeleteIndexTemplateRequest,DeleteJobRequest,DeleteModelSnapshotRequest,DeletePipelineRequest,DeleteRepositoryRequest,DeleteRequest,DeleteSnapshotRequest,DeleteStoredScriptRequest,ExplainRequest,FieldCapabilitiesIndexRequest,FieldCapabilitiesRequest,FlushJobRequest,FlushRequest,FollowersChecker.FollowerCheckRequest,ForceMergeRequest,ForecastJobRequest,GetAliasesRequest,GetBucketsRequest,GetCalendarEventsRequest,GetCalendarsRequest,GetCategoriesRequest,GetDatafeedRequest,GetDatafeedStatsRequest,GetFieldMappingsIndexRequest,GetFieldMappingsRequest,GetFiltersRequest,GetIndexRequest,GetIndexTemplatesRequest,GetInfluencersRequest,GetJobRequest,GetJobStatsRequest,GetMappingsRequest,GetModelSnapshotsRequest,GetOverallBucketsRequest,GetPipelineRequest,GetRepositoriesRequest,GetRequest,GetSettingsRequest,GetSnapshotsRequest,GetStoredScriptRequest,GetTaskRequest,GlobalCheckpointSyncAction.Request,IndexRequest,IndicesAliasesRequest,IndicesExistsRequest,IndicesSegmentsRequest,IndicesShardStoresRequest,IndicesStatsRequest,InstanceShardOperationRequest,InternalScrollSearchRequest,JoinRequest,ListTasksRequest,LivenessRequest,LocalAllocateDangledIndices.AllocateDangledRequest,MainRequest,MasterFaultDetection.MasterPingRequest,MasterNodeReadRequest,MasterNodeRequest,MembershipAction.JoinRequest,MembershipAction.LeaveRequest,MultiGetRequest,MultiGetShardRequest,MultiSearchRequest,MultiSearchTemplateRequest,MultiTermVectorsRequest,MultiTermVectorsShardRequest,NodeMappingRefreshAction.NodeMappingRefreshRequest,NodesFaultDetection.PingRequest,NodesHotThreadsRequest,NodesInfoRequest,NodesReloadSecureSettingsRequest,NodesStatsRequest,NodesUsageRequest,OpenIndexRequest,OpenJobRequest,PeersRequest,PendingClusterTasksRequest,PostCalendarEventRequest,PostDataRequest,PreviewDatafeedRequest,PreVoteRequest,PrimaryReplicaSyncer.ResyncRequest,PublishClusterStateAction.CommitClusterStateRequest,PutCalendarJobRequest,PutCalendarRequest,PutDatafeedRequest,PutFilterRequest,PutIndexTemplateRequest,PutIndexTemplateRequest,PutJobRequest,PutMappingRequest,PutPipelineRequest,PutRepositoryRequest,PutStoredScriptRequest,QuerySearchRequest,RankEvalRequest,RecoveryCleanFilesRequest,RecoveryFileChunkRequest,RecoveryFilesInfoRequest,RecoveryRequest,RecoveryTranslogOperationsRequest,RefreshRequest,ReindexRequest,RemoteInfoRequest,RemovePersistentTaskAction.Request,ReplicatedWriteRequest,ReplicationRequest,ResizeRequest,RestoreSnapshotRequest,ResyncReplicationRequest,RetentionLeaseActions.AddRequest,RetentionLeaseActions.RemoveRequest,RetentionLeaseActions.RenewRequest,RetentionLeaseBackgroundSyncAction.Request,RetentionLeaseSyncAction.Request,RevertModelSnapshotRequest,RolloverRequest,SearchRequest,SearchScrollRequest,SearchTemplateRequest,SetUpgradeModeRequest,ShardFetchRequest,ShardFetchSearchRequest,ShardFlushRequest,ShardSearchRequest,ShardStateAction.FailedShardEntry,ShardStateAction.StartedShardEntry,ShardValidateQueryRequest,SimulatePipelineRequest,SingleShardRequest,SnapshotShardsService.UpdateIndexShardSnapshotStatusRequest,SnapshotsStatusRequest,StartDatafeedRequest,StartJoinRequest,StartPersistentTaskAction.Request,StartRecoveryRequest,StopDatafeedRequest,SyncedFlushRequest,SyncedFlushService.InFlightOpsRequest,SyncedFlushService.PreShardSyncedFlushRequest,SyncedFlushService.ShardSyncedFlushRequest,TermVectorsRequest,TransportBroadcastByNodeAction.NodeRequest,TransportClusterStatsAction.ClusterStatsNodeRequest,TransportNodesHotThreadsAction.NodeRequest,TransportNodesInfoAction.NodeInfoRequest,TransportNodesListGatewayMetaState.NodeRequest,TransportNodesListGatewayMetaState.Request,TransportNodesListGatewayStartedShards.NodeRequest,TransportNodesListGatewayStartedShards.Request,TransportNodesListShardStoreMetaData.NodeRequest,TransportNodesListShardStoreMetaData.Request,TransportNodesReloadSecureSettingsAction.NodeRequest,TransportNodesSnapshotsStatus.NodeRequest,TransportNodesSnapshotsStatus.Request,TransportNodesStatsAction.NodeStatsRequest,TransportNodesUsageAction.NodeUsageRequest,TransportReplicationAction.ConcreteReplicaRequest,TransportReplicationAction.ConcreteShardRequest,TransportRequest,TransportRequest.Empty,TransportVerifyShardBeforeCloseAction.ShardRequest,TypesExistsRequest,UnicastZenPing.UnicastPingRequest,UpdateByQueryRequest,UpdateDatafeedRequest,UpdateFilterRequest,UpdateJobRequest,UpdateModelSnapshotRequest,UpdatePersistentTaskStatusAction.Request,UpdateRequest,UpdateSettingsRequest,UpgradeRequest,UpgradeSettingsRequest,UpgradeStatusRequest,ValidateJoinRequest,ValidateQueryRequest,VerifyNodeRepositoryAction.VerifyNodeRepositoryRequest,VerifyRepositoryRequest,ZenDiscovery.RejoinClusterRequest
public interface TaskAwareRequestAn interface for a request that can be used to register a task manager task
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TaskcreateTask(long id, String type, String action, TaskId parentTaskId, Map<String,String> headers)Returns the task object that should be used to keep track of the processing of the request.default StringgetDescription()Returns optional description of the request to be displayed by the task managerTaskIdgetParentTask()Get a reference to the task that created this request.default voidsetParentTask(String parentTaskNode, long parentTaskId)Set a reference to task that caused this task to be run.voidsetParentTask(TaskId taskId)Set a reference to task that created this request.
-
-
-
Method Detail
-
setParentTask
default void setParentTask(String parentTaskNode, long parentTaskId)
Set a reference to task that caused this task to be run.
-
setParentTask
void setParentTask(TaskId taskId)
Set a reference to task that created this request.
-
getParentTask
TaskId getParentTask()
Get a reference to the task that created this request. Implementers should default toTaskId.EMPTY_TASK_ID, meaning "there is no parent".
-
createTask
default Task createTask(long id, String type, String action, TaskId parentTaskId, Map<String,String> headers)
Returns the task object that should be used to keep track of the processing of the request.
-
getDescription
default String getDescription()
Returns optional description of the request to be displayed by the task manager
-
-