Streamable, Writeable, TaskAwareRequestCancelTasksRequest, ListTasksRequestpublic class BaseTasksRequest<Request extends BaseTasksRequest<Request>> extends ActionRequest
TransportRequest.EmptyWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String[] |
ALL_ACTIONS |
|
static java.lang.String[] |
ALL_NODES |
| Constructor | Description |
|---|---|
BaseTasksRequest() |
| Modifier and Type | Method | 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.
|
getShouldStoreResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewWriteableReadercreateTask, getDescription, setParentTaskremoteAddress, remoteAddressgetParentTask, setParentTaskpublic static final java.lang.String[] ALL_ACTIONS
public static final java.lang.String[] ALL_NODES
public ActionRequestValidationException validate()
validate in class ActionRequestpublic 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
StreamablereadFrom in interface StreamablereadFrom in class ActionRequestjava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class ActionRequestjava.io.IOExceptionpublic boolean match(Task task)