Package org.elasticsearch.tasks
Class TaskId
- java.lang.Object
-
- org.elasticsearch.tasks.TaskId
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
Fields Modifier and Type Field Description static TaskIdEMPTY_TASK_ID
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)longgetId()java.lang.StringgetNodeId()inthashCode()booleanisSet()static ContextParser<java.lang.Void,TaskId>parser()static TaskIdreadFromStream(StreamInput in)Read a TaskId from a stream.java.lang.StringtoString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
-
-
Field Detail
-
EMPTY_TASK_ID
public static final TaskId EMPTY_TASK_ID
-
-
Method Detail
-
readFromStream
public static TaskId readFromStream(StreamInput in) throws java.io.IOException
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:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:WriteableWrite this into the StreamOutput.
-
parser
public static ContextParser<java.lang.Void,TaskId> parser()
-
getNodeId
public java.lang.String getNodeId()
-
getId
public long getId()
-
isSet
public boolean isSet()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-