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:
Writeable,org.elasticsearch.common.util.concurrent.RefCounted,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.EmptyNested 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_ACTIONSstatic java.lang.String[]ALL_NODES -
Constructor Summary
Constructors Modifier Constructor Description BaseTasksRequest()protectedBaseTasksRequest(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()TaskIdgetParentTaskId()Returns the parent task id that tasks should be filtered byTaskIdgetTaskId()Returns the id of the task that should be processed.org.elasticsearch.common.unit.TimeValuegetTimeout()booleanmatch(Task task)RequestsetActions(java.lang.String... actions)Sets the list of action masks for the actions that should be returnedRequestsetNodes(java.lang.String... nodes)RequestsetParentTaskId(TaskId parentTaskId)RequestsetTaskId(TaskId taskId)RequestsetTimeout(java.lang.String timeout)RequestsetTimeout(org.elasticsearch.common.unit.TimeValue timeout)ActionRequestValidationExceptionvalidate()voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Field Details
-
ALL_ACTIONS
public static final java.lang.String[] ALL_ACTIONS -
ALL_NODES
public static final java.lang.String[] ALL_NODES
-
-
Constructor Details
-
BaseTasksRequest
public BaseTasksRequest() -
BaseTasksRequest
- Throws:
java.io.IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classActionRequest- Throws:
java.io.IOException
-
validate
- Specified by:
validatein classActionRequest
-
setActions
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
-
getTaskId
Returns the id of the task that should be processed. By default tasks with any ids are returned. -
setTaskId
-
getParentTaskId
Returns the parent task id that tasks should be filtered by -
setParentTaskId
-
getTimeout
public org.elasticsearch.common.unit.TimeValue getTimeout() -
setTimeout
-
setTimeout
-
match
-