Class TimelineEvents.EventsOfOneEntity
java.lang.Object
org.apache.hadoop.yarn.api.records.timeline.TimelineEvents.EventsOfOneEntity
- Enclosing class:
- TimelineEvents
The class that hosts a list of events that are only related to one entity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEvent(TimelineEvent event) Add a single event to the existing event listvoidaddEvents(List<TimelineEvent> events) Add a list of event to the existing event listGet the entity IdGet the entity typeGet a list of eventsvoidsetEntityId(String entityId) Set the entity IdvoidsetEntityType(String entityType) Set the entity typevoidsetEvents(List<TimelineEvent> events) Set the event list to the given list of events
-
Constructor Details
-
EventsOfOneEntity
public EventsOfOneEntity()
-
-
Method Details
-
getEntityId
Get the entity Id- Returns:
- the entity Id
-
setEntityId
Set the entity Id- Parameters:
entityId- the entity Id
-
getEntityType
Get the entity type- Returns:
- the entity type
-
setEntityType
Set the entity type- Parameters:
entityType- the entity type
-
getEvents
Get a list of events- Returns:
- a list of events
-
addEvent
Add a single event to the existing event list- Parameters:
event- a single event
-
addEvents
Add a list of event to the existing event list- Parameters:
events- a list of events
-
setEvents
Set the event list to the given list of events- Parameters:
events- a list of events
-