@InterfaceAudience.Private @InterfaceStability.Unstable public class JobFinishedEvent extends Object implements HistoryEvent
Constructor and Description |
---|
JobFinishedEvent(JobID id,
long finishTime,
int succeededMaps,
int succeededReduces,
int failedMaps,
int failedReduces,
int killedMaps,
int killedReduces,
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
|
long |
getFinishTime()
Get the job finish time
|
JobID |
getJobid()
Get the Job ID
|
int |
getKilledMaps()
Get the number of killed maps
|
int |
getKilledReduces()
Get the number of killed reduces
|
Counters |
getMapCounters()
Get the Map counters for the job
|
Counters |
getReduceCounters()
Get the reduce counters for the job
|
int |
getSucceededMaps()
Get the number of finished maps for the job
|
int |
getSucceededReduces()
Get the number of finished reducers 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 succeededMaps, int succeededReduces, int failedMaps, int failedReduces, int killedMaps, int killedReduces, Counters mapCounters, Counters reduceCounters, Counters totalCounters)
id
- Job IDfinishTime
- Finish time of the jobsucceededMaps
- The number of succeeded mapssucceededReduces
- The number of succeeded 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()
HistoryEvent
getDatum
in interface HistoryEvent
public void setDatum(Object oDatum)
HistoryEvent
setDatum
in interface HistoryEvent
public EventType getEventType()
HistoryEvent
getEventType
in interface HistoryEvent
public JobID getJobid()
public long getFinishTime()
public int getSucceededMaps()
public int getSucceededReduces()
public int getFailedMaps()
public int getFailedReduces()
public int getKilledMaps()
public int getKilledReduces()
public Counters getTotalCounters()
public Counters getMapCounters()
public Counters getReduceCounters()
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–2022 Apache Software Foundation. All rights reserved.