Class BaseTasksRequest<Request extends BaseTasksRequest<Request>>
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription[]
Return the list of action masks for the actions that should be returned[]
getNodes()
Returns the parent task id that tasks should be filtered byReturns the id of the task that should be processed.org.elasticsearch.core.TimeValue
boolean
... actions)
Sets the list of action masks for the actions that should be returned... nodes)
setParentTaskId(TaskId parentTaskId)
timeout)
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, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.
, , , , , , , , ,
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Field Details
-
ALL_ACTIONS
public static final [] ALL_ACTIONS -
ALL_NODES
public static final [] ALL_NODES
-
-
Constructor Details
-
BaseTasksRequest
public BaseTasksRequest() -
BaseTasksRequest
- Throws:
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classActionRequest
- Throws:
-
validate
- Specified by:
validate
in classActionRequest
-
setActions
public final ... actions)Sets the list of action masks for the actions that should be returned -
getActions
public [] getActions()Return the list of action masks for the actions that should be returned -
getNodes
public final [] getNodes() -
setNodes
public final ... nodes) -
getTaskId
Returns the id of the task that should be processed. By default tasks with any ids are returned. -
setTaskId
-
getParentTaskId
Returns the parent task id that tasks should be filtered by -
setParentTaskId
-
getTimeout
public org.elasticsearch.core.TimeValue getTimeout() -
setTimeout
-
setTimeout
public final timeout) -
match
-