Class TaskId

org.elasticsearch.tasks.TaskId
All Implemented Interfaces:
Writeable

public final class TaskId extends implements Writeable
Task id that consists of node id and id of the task on the node
  • Field Details

    • EMPTY_TASK_ID

      public static final TaskId EMPTY_TASK_ID
  • Constructor Details

    • TaskId

      public TaskId( nodeId, long id)
    • TaskId

      public TaskId( taskId)
  • Method Details

    • readFromStream

      public static TaskId readFromStream(StreamInput in) throws
      Read a TaskId from a stream. TaskId has this rather than the usual constructor that takes a StreamInput so we can return the EMPTY_TASK_ID without allocating.
      Throws:
    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
    • parser

      public static org.elasticsearch.common.xcontent.ContextParser<,​TaskId> parser()
    • getNodeId

      public  getNodeId()
    • getId

      public long getId()
    • isSet

      public boolean isSet()
    • toString

      public  toString()
      Overrides:
       in class 
    • equals

      public boolean equals( o)
      Overrides:
       in class 
    • hashCode

      public int hashCode()
      Overrides:
       in class