Package org.elasticsearch.tasks
Class TaskId
org.elasticsearch.tasks.TaskId
- All Implemented Interfaces:
Writeable
Task id that consists of node id and id of the task on the node
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptiontaskId)
nodeId, long id)
-
Method Summary
Methods inherited from class java.lang.
, , , , , , ,
-
Field Details
-
EMPTY_TASK_ID
-
-
Constructor Details
-
TaskId
public TaskId( nodeId, long id) -
TaskId
public TaskId( taskId)
-
-
Method Details
-
readFromStream
Read a TaskId from a stream. TaskId has this rather than the usual constructor that takes a StreamInput so we can return theEMPTY_TASK_ID
without allocating.- Throws:
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
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
-