Package org.elasticsearch.tasks
Class TaskId
java.lang.Object
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetId()inthashCode()booleanisSet()parser()static TaskIdRead a TaskId from a stream.toString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Field Details
-
EMPTY_TASK_ID
-
-
Constructor Details
-
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_IDwithout allocating.- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
parser
-
getNodeId
-
getId
public long getId() -
isSet
public boolean isSet() -
toString
-
equals
-
hashCode
public int hashCode()
-