org.apache.hadoop.mapreduce.jobhistory
Class JobFinishedEvent

java.lang.Object
  extended by org.apache.hadoop.mapreduce.jobhistory.JobFinishedEvent
All Implemented Interfaces:
HistoryEvent

@InterfaceAudience.Private
@InterfaceStability.Unstable
public class JobFinishedEvent
extends Object
implements HistoryEvent

Event to record successful completion of job


Constructor Summary
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
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobFinishedEvent

public 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

Parameters:
id - Job ID
finishTime - Finish time of the job
finishedMaps - The number of finished maps
finishedReduces - The number of finished reduces
failedMaps - The number of failed maps
failedReduces - The number of failed reduces
mapCounters - Map Counters for the job
reduceCounters - Reduce Counters for the job
totalCounters - Total Counters for the job
Method Detail

getDatum

public Object getDatum()
Description copied from interface: HistoryEvent
Return the Avro datum wrapped by this.

Specified by:
getDatum in interface HistoryEvent

setDatum

public void setDatum(Object oDatum)
Description copied from interface: HistoryEvent
Set the Avro datum wrapped by this.

Specified by:
setDatum in interface HistoryEvent

getEventType

public EventType getEventType()
Description copied from interface: HistoryEvent
Return this event's type.

Specified by:
getEventType in interface HistoryEvent

getJobid

public JobID getJobid()
Get the Job ID


getFinishTime

public long getFinishTime()
Get the job finish time


getFinishedMaps

public int getFinishedMaps()
Get the number of finished maps for the job


getFinishedReduces

public int getFinishedReduces()
Get the number of finished reducers for the job


getFailedMaps

public int getFailedMaps()
Get the number of failed maps for the job


getFailedReduces

public int getFailedReduces()
Get the number of failed reducers for the job


getTotalCounters

public Counters getTotalCounters()
Get the counters for the job


getMapCounters

public Counters getMapCounters()
Get the Map counters for the job


getReduceCounters

public Counters getReduceCounters()
Get the reduce counters for the job



Copyright © 2013 Apache Software Foundation. All Rights Reserved.