@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
|
Counters |
getTotalCounters()
Get the counters for the job
|
void |
setDatum(Object oDatum)
Set the Avro datum wrapped by this.
|
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()
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 getFinishedMaps()
public int getFinishedReduces()
public int getFailedMaps()
public int getFailedReduces()
public Counters getTotalCounters()
public Counters getMapCounters()
public Counters getReduceCounters()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.