public class BaseTasksRequest<Request extends BaseTasksRequest<Request>> extends ActionRequest<Request>
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[] |
getNodesIds() |
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 |
setNodesIds(java.lang.String... nodesIds) |
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.
|
createTask, getDescription, getParentTask, setParentTask, setParentTask
remoteAddress, remoteAddress
public static final java.lang.String[] ALL_ACTIONS
public static final java.lang.String[] ALL_NODES
public ActionRequestValidationException validate()
validate
in class ActionRequest<Request extends BaseTasksRequest<Request>>
public final Request setActions(java.lang.String... actions)
public java.lang.String[] getActions()
public final java.lang.String[] getNodesIds()
public final Request setNodesIds(java.lang.String... nodesIds)
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<Request extends BaseTasksRequest<Request>>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class ActionRequest<Request extends BaseTasksRequest<Request>>
java.io.IOException
public boolean match(Task task)