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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetId()StringgetNodeId()inthashCode()booleanisSet()static ContextParser<Void,TaskId>parser()static TaskIdreadFromStream(StreamInput in)Read a TaskId from a stream.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 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:
IOException
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
parser
public static ContextParser<Void,TaskId> parser()
-
getNodeId
public String getNodeId()
-
getId
public long getId()
-
isSet
public boolean isSet()
-
-