All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, TaskAwareRequest

public class GetTaskRequest extends ActionRequest
A request to get node tasks
  • Constructor Details

  • Method Details

    • getTaskId

      public TaskId getTaskId()
    • setTaskId

      public GetTaskRequest setTaskId(TaskId taskId)
      Set the TaskId to look up. Required.
    • getWaitForCompletion

      public boolean getWaitForCompletion()
      Should this request wait for all found tasks to complete?
    • setWaitForCompletion

      public GetTaskRequest setWaitForCompletion(boolean waitForCompletion)
      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

      public GetTaskRequest setTimeout(org.elasticsearch.core.TimeValue timeout)
      Timeout to wait for any async actions this request must take. It must take anywhere from 0 to 2.
    • validate

      Specified by:
      validate in class ActionRequest
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class ActionRequest
      Throws:
      IOException