public class BaseTasksRequest<T extends BaseTasksRequest> extends ActionRequest<T>
TransportRequest.Empty| Modifier and Type | Field and Description |
|---|---|
static String[] |
ALL_ACTIONS |
static String[] |
ALL_NODES |
static long |
ALL_TASKS |
headers| Constructor and Description |
|---|
BaseTasksRequest() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getActions()
Return the list of action masks for the actions that should be returned
|
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) |
T |
setActions(String... actions)
Sets the list of action masks for the actions that should be returned
|
T |
setNodesIds(String... nodesIds) |
T |
setParentTaskId(TaskId parentTaskId) |
T |
setTaskId(TaskId taskId) |
T |
setTimeout(String timeout) |
T |
setTimeout(TimeValue timeout) |
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
createTask, getDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic static final String[] ALL_ACTIONS
public static final String[] ALL_NODES
public static final long ALL_TASKS
public ActionRequestValidationException validate()
validate in class ActionRequest<T extends BaseTasksRequest>public final T setActions(String... actions)
public String[] getActions()
public final String[] getNodesIds()
public TaskId getTaskId()
public TaskId getParentTaskId()
public TimeValue getTimeout()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionRequest<T extends BaseTasksRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionRequest<T extends BaseTasksRequest>IOExceptionpublic boolean match(Task task)
Copyright © 2009–2016. All rights reserved.