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:
Streamable
,Writeable
,TaskAwareRequest
- Direct Known Subclasses:
CancelTasksRequest
,ListTasksRequest
public class BaseTasksRequest<Request extends BaseTasksRequest<Request>> extends ActionRequest
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 Modifier and Type Field Description static java.lang.String[]
ALL_ACTIONS
static java.lang.String[]
ALL_NODES
-
Constructor Summary
Constructors Modifier Constructor Description BaseTasksRequest()
protected
BaseTasksRequest(StreamInput in)
-
Method Summary
Modifier and Type Method Description java.lang.String[]
getActions()
Return the list of action masks for the actions that should be returnedjava.lang.String[]
getNodes()
TaskId
getParentTaskId()
Returns the parent task id that tasks should be filtered byTaskId
getTaskId()
Returns the id of the task that should be processed.TimeValue
getTimeout()
boolean
match(Task task)
Request
setActions(java.lang.String... actions)
Sets the list of action masks for the actions that should be returnedRequest
setNodes(java.lang.String... nodes)
Request
setParentTaskId(TaskId parentTaskId)
Request
setTaskId(TaskId taskId)
Request
setTimeout(java.lang.String timeout)
Request
setTimeout(TimeValue timeout)
ActionRequestValidationException
validate()
void
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.-
Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult, readFrom
-
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
-
-
-
Constructor Detail
-
BaseTasksRequest
public BaseTasksRequest()
-
BaseTasksRequest
protected BaseTasksRequest(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Streamable
Write this object's fields to a StreamOutput.- Specified by:
writeTo
in interfaceStreamable
- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classActionRequest
- Throws:
java.io.IOException
-
validate
public ActionRequestValidationException validate()
- Specified by:
validate
in classActionRequest
-
setActions
public final Request setActions(java.lang.String... actions)
Sets the list of action masks for the actions that should be returned
-
getActions
public java.lang.String[] getActions()
Return the list of action masks for the actions that should be returned
-
getNodes
public final java.lang.String[] getNodes()
-
setNodes
public final Request setNodes(java.lang.String... nodes)
-
getTaskId
public TaskId getTaskId()
Returns the id of the task that should be processed. By default tasks with any ids are returned.
-
getParentTaskId
public TaskId getParentTaskId()
Returns the parent task id that tasks should be filtered by
-
getTimeout
public TimeValue getTimeout()
-
setTimeout
public final Request setTimeout(java.lang.String timeout)
-
match
public boolean match(Task task)
-
-