public class JobFinishedEvent extends Object implements HistoryEvent
构造器和说明 |
---|
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
|
限定符和类型 | 方法和说明 |
---|---|
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
|
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 EventType getEventType()
HistoryEvent
getEventType
在接口中 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 © 2009 The Apache Software Foundation