Class BaseTasksRequest<Request extends BaseTasksRequest<Request>>
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.tasks.BaseTasksRequest<Request>
- All Implemented Interfaces:
Writeable
,org.elasticsearch.core.RefCounted
,TaskAwareRequest
- Direct Known Subclasses:
CancelTasksRequest
,ListTasksRequest
A base class for task requests
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
Return the list of action masks for the actions that should be returnedfinal String[]
getNodes()
Deprecated.Returns the parent task id that tasks should be filtered byReturns the id of the task that should be processed.Deprecated.org.elasticsearch.core.TimeValue
boolean
final Request
setActions
(String... actions) Sets the list of action masks for the actions that should be returnedfinal Request
setParentTaskId
(TaskId parentTaskId) Deprecated.setTargetParentTaskId
(TaskId targetParentTaskId) final Request
setTargetTaskId
(TaskId targetTaskId) final Request
Deprecated.final Request
setTimeout
(String timeout) final Request
setTimeout
(org.elasticsearch.core.TimeValue timeout) validate()
void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask, toString
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Field Details
-
ALL_ACTIONS
-
ALL_NODES
-
-
Constructor Details
-
BaseTasksRequest
public BaseTasksRequest() -
BaseTasksRequest
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classActionRequest
- Throws:
IOException
-
validate
- Specified by:
validate
in classActionRequest
-
setActions
Sets the list of action masks for the actions that should be returned -
getActions
Return the list of action masks for the actions that should be returned -
getNodes
-
setNodes
-
getTargetTaskId
Returns the id of the task that should be processed. By default tasks with any ids are returned. -
setTargetTaskId
-
getTaskId
Deprecated. -
setTaskId
Deprecated. -
getTargetParentTaskId
Returns the parent task id that tasks should be filtered by -
setTargetParentTaskId
-
getParentTaskId
Deprecated. -
setParentTaskId
Deprecated. -
getTimeout
public org.elasticsearch.core.TimeValue getTimeout() -
setTimeout
-
setTimeout
-
match
-
getTargetParentTaskId()