@InterfaceAudience.Private @InterfaceStability.Unstable public class TaskUpdatedEvent extends Object implements HistoryEvent
Constructor and Description |
---|
TaskUpdatedEvent(TaskID id,
long finishTime)
Create an event to record task updates
|
Modifier and Type | Method and Description |
---|---|
Object |
getDatum()
Return the Avro datum wrapped by this.
|
EventType |
getEventType()
Get the event type
|
long |
getFinishTime()
Get the task finish time
|
TaskID |
getTaskId()
Get the task ID
|
Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> |
getTimelineMetrics()
Counters or Metrics if any else return null.
|
void |
setDatum(Object datum)
Set the Avro datum wrapped by this.
|
org.apache.hadoop.yarn.api.records.timelineservice.TimelineEvent |
toTimelineEvent()
Map HistoryEvent to TimelineEvent.
|
public TaskUpdatedEvent(TaskID id, long finishTime)
id
- Id of the taskfinishTime
- Finish time of the taskpublic Object getDatum()
HistoryEvent
getDatum
in interface HistoryEvent
public void setDatum(Object datum)
HistoryEvent
setDatum
in interface HistoryEvent
public TaskID getTaskId()
public long getFinishTime()
public EventType getEventType()
getEventType
in interface HistoryEvent
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEvent toTimelineEvent()
HistoryEvent
toTimelineEvent
in interface HistoryEvent
public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> getTimelineMetrics()
HistoryEvent
getTimelineMetrics
in interface HistoryEvent
Copyright © 2008–2017 Apache Software Foundation. All rights reserved.