Class TimelineEvent
java.lang.Object
org.apache.hadoop.yarn.api.records.timelineservice.TimelineEvent
- All Implemented Interfaces:
Comparable<TimelineEvent>
This class contains the information of an event that belongs to an entity.
Users are free to define what the event means, such as starting an
application, container being allocated, etc.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidintcompareTo(TimelineEvent other) booleangetId()getInfo()longinthashCode()booleanisValid()voidvoidvoidsetTimestamp(long ts)
-
Field Details
-
INVALID_TIMESTAMP
public static final long INVALID_TIMESTAMP- See Also:
-
-
Constructor Details
-
TimelineEvent
public TimelineEvent()
-
-
Method Details
-
getId
-
setId
-
getInfoJAXB
-
getInfo
-
setInfo
-
addInfo
-
addInfo
-
getTimestamp
public long getTimestamp() -
setTimestamp
public void setTimestamp(long ts) -
isValid
public boolean isValid() -
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<TimelineEvent>
-