Class GetTaskRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.admin.cluster.node.tasks.get.GetTaskRequest
- 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> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.core.TimeValueTimeout to wait for any async actions this request must take.booleanShould this request wait for all found tasks to complete?Set the TaskId to look up.setTimeout(org.elasticsearch.core.TimeValue timeout)Timeout to wait for any async actions this request must take.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.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
-
Constructor Details
-
GetTaskRequest
public GetTaskRequest()Get the TaskId to look up. -
GetTaskRequest
- Throws:
IOException
-
-
Method Details
-
getTaskId
-
setTaskId
Set the TaskId to look up. Required. -
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? -
getTimeout
public org.elasticsearch.core.TimeValue getTimeout()Timeout to wait for any async actions this request must take. It must take anywhere from 0 to 2. -
setTimeout
Timeout to wait for any async actions this request must take. It must take anywhere from 0 to 2. -
validate
- Specified by:
validatein classActionRequest
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classActionRequest- Throws:
IOException
-