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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
getId()
int
hashCode()
boolean
isSet()
parser()
static TaskId
Read a TaskId from a stream.toString()
void
writeTo(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_ID
without allocating.- Throws:
IOException
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
parser
-
getNodeId
-
getId
public long getId() -
isSet
public boolean isSet() -
toString
-
equals
-
hashCode
public int hashCode()
-