@InterfaceAudience.Private @InterfaceStability.Unstable public class JobFinishedEvent extends Object implements HistoryEvent
| Constructor and Description |
|---|
JobFinishedEvent(JobID id,
long finishTime,
int finishedMaps,
int finishedReduces,
int failedMaps,
int failedReduces,
Counters mapCounters,
Counters reduceCounters,
Counters totalCounters)
Create an event to record successful job completion
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getDatum()
Return the Avro datum wrapped by this.
|
EventType |
getEventType()
Return this event's type.
|
int |
getFailedMaps()
Get the number of failed maps for the job
|
int |
getFailedReduces()
Get the number of failed reducers for the job
|
int |
getFinishedMaps()
Get the number of finished maps for the job
|
int |
getFinishedReduces()
Get the number of finished reducers for the job
|
long |
getFinishTime()
Get the job finish time
|
JobID |
getJobid()
Get the Job ID
|
Counters |
getMapCounters()
Get the Map counters for the job
|
Counters |
getReduceCounters()
Get the reduce counters for the job
|
Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> |
getTimelineMetrics()
Counters or Metrics if any else return null.
|
Counters |
getTotalCounters()
Get the counters for the job
|
void |
setDatum(Object oDatum)
Set the Avro datum wrapped by this.
|
org.apache.hadoop.yarn.api.records.timelineservice.TimelineEvent |
toTimelineEvent()
Map HistoryEvent to TimelineEvent.
|
public JobFinishedEvent(JobID id, long finishTime, int finishedMaps, int finishedReduces, int failedMaps, int failedReduces, Counters mapCounters, Counters reduceCounters, Counters totalCounters)
id - Job IDfinishTime - Finish time of the jobfinishedMaps - The number of finished mapsfinishedReduces - The number of finished reducesfailedMaps - The number of failed mapsfailedReduces - The number of failed reducesmapCounters - Map Counters for the jobreduceCounters - Reduce Counters for the jobtotalCounters - Total Counters for the jobpublic Object getDatum()
HistoryEventgetDatum in interface HistoryEventpublic void setDatum(Object oDatum)
HistoryEventsetDatum in interface HistoryEventpublic EventType getEventType()
HistoryEventgetEventType in interface HistoryEventpublic JobID getJobid()
public long getFinishTime()
public int getFinishedMaps()
public int getFinishedReduces()
public int getFailedMaps()
public int getFailedReduces()
public Counters getTotalCounters()
public Counters getMapCounters()
public Counters getReduceCounters()
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEvent toTimelineEvent()
HistoryEventtoTimelineEvent in interface HistoryEventpublic Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> getTimelineMetrics()
HistoryEventgetTimelineMetrics in interface HistoryEventCopyright © 2022 Apache Software Foundation. All rights reserved.