|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.yarn.api.records.timeline.TimelineEvent
@InterfaceAudience.Public @InterfaceStability.Unstable public class TimelineEvent
The class that contains the information of an event that is related to some conceptual entity of an application. Users are free to define what the event means, such as starting an application, getting allocated a container and etc.
Constructor Summary | |
---|---|
TimelineEvent()
|
Method Summary | |
---|---|
void |
addEventInfo(Map<String,Object> eventInfo)
Add a map of the information of the event to the existing information map |
void |
addEventInfo(String key,
Object value)
Add one piece of the information of the event to the existing information map |
int |
compareTo(TimelineEvent other)
|
boolean |
equals(Object o)
|
Map<String,Object> |
getEventInfo()
Set the information of the event |
String |
getEventType()
Get the event type |
long |
getTimestamp()
Get the timestamp of the event |
int |
hashCode()
|
void |
setEventInfo(Map<String,Object> eventInfo)
Set the information map to the given map of the information of the event |
void |
setEventType(String eventType)
Set the event type |
void |
setTimestamp(long timestamp)
Set the timestamp of the event |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimelineEvent()
Method Detail |
---|
public long getTimestamp()
public void setTimestamp(long timestamp)
timestamp
- the timestamp of the eventpublic String getEventType()
public void setEventType(String eventType)
eventType
- the event typepublic Map<String,Object> getEventInfo()
public void addEventInfo(String key, Object value)
key
- the information keyvalue
- the information valuepublic void addEventInfo(Map<String,Object> eventInfo)
eventInfo
- a map of of the information of the eventpublic void setEventInfo(Map<String,Object> eventInfo)
eventInfo
- a map of of the information of the eventpublic int compareTo(TimelineEvent other)
compareTo
in interface Comparable<TimelineEvent>
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |