public class BaseTasksRequest<Request extends BaseTasksRequest<Request>> extends ActionRequest
TransportRequest.Empty
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
ALL_ACTIONS |
static java.lang.String[] |
ALL_NODES |
Constructor and Description |
---|
BaseTasksRequest() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getActions()
Return the list of action masks for the actions that should be returned
|
java.lang.String[] |
getNodes() |
TaskId |
getParentTaskId()
Returns the parent task id that tasks should be filtered by
|
TaskId |
getTaskId()
Returns the id of the task that should be processed.
|
TimeValue |
getTimeout() |
boolean |
match(Task task) |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
Request |
setActions(java.lang.String... actions)
Sets the list of action masks for the actions that should be returned
|
Request |
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.
|
getShouldStoreResult
getParentTask, setParentTask
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTask, getDescription, setParentTask
public static final java.lang.String[] ALL_ACTIONS
public static final java.lang.String[] ALL_NODES
public ActionRequestValidationException validate()
validate
in class ActionRequest
public final Request setActions(java.lang.String... actions)
public java.lang.String[] getActions()
public final java.lang.String[] getNodes()
public final Request setNodes(java.lang.String... nodes)
public TaskId getTaskId()
public TaskId getParentTaskId()
public TimeValue getTimeout()
public final Request setTimeout(java.lang.String timeout)
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class ActionRequest
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class ActionRequest
java.io.IOException
public boolean match(Task task)