Class ListTasksRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.tasks.BaseTasksRequest<ListTasksRequest>
org.elasticsearch.action.admin.cluster.node.tasks.list.ListTasksRequest
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted,TaskAwareRequest
A request to get node tasks
-
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
FieldsFields inherited from class org.elasticsearch.action.support.tasks.BaseTasksRequest
ALL_ACTIONS, ALL_NODES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Description patters on which to match.booleanShould the detailed task information be returned.booleanShould this request wait for all found tasks to complete?booleansetDescriptions(String... descriptions)setDetailed(boolean detailed)Should the detailed task information be returned.setWaitForCompletion(boolean waitForCompletion)Should this request wait for all found tasks to complete?validate()voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.tasks.BaseTasksRequest
getActions, getNodes, getParentTaskId, getTaskId, getTimeout, setActions, setNodes, setParentTaskId, setTaskId, setTimeout, setTimeoutMethods 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
-
ANY_DESCRIPTION
-
-
Constructor Details
-
ListTasksRequest
public ListTasksRequest() -
ListTasksRequest
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classBaseTasksRequest<ListTasksRequest>- Throws:
IOException
-
validate
- Overrides:
validatein classBaseTasksRequest<ListTasksRequest>
-
match
- Overrides:
matchin classBaseTasksRequest<ListTasksRequest>
-
getDetailed
public boolean getDetailed()Should the detailed task information be returned. -
setDetailed
Should the detailed task information be returned. -
getWaitForCompletion
public boolean getWaitForCompletion()Should this request wait for all found tasks to complete? -
setWaitForCompletion
Should this request wait for all found tasks to complete? -
getDescriptions
Description patters on which to match. If other matching criteria are set, descriptions are matched last once other criteria are satisfied Matching on descriptions is only available if `detailed` is `true`.- Returns:
- array of absolute or simple wildcard matching strings
-
setDescriptions
-