org.apache.hadoop.mapreduce.jobhistory
Class JobUnsuccessfulCompletionEvent

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

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

Event to record Failed and Killed completion of jobs


Constructor Summary
JobUnsuccessfulCompletionEvent(JobID id, long finishTime, int finishedMaps, int finishedReduces, String status)
          Create an event to record unsuccessful completion (killed/failed) of jobs
 
Method Summary
 Object getDatum()
          Return the Avro datum wrapped by this.
 EventType getEventType()
          Get the event type
 int getFinishedMaps()
          Get the number of finished maps
 int getFinishedReduces()
          Get the number of finished reduces
 long getFinishTime()
          Get the job finish time
 JobID getJobId()
          Get the Job ID
 String getStatus()
          Get the status
 void setDatum(Object datum)
          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

JobUnsuccessfulCompletionEvent

public JobUnsuccessfulCompletionEvent(JobID id,
                                      long finishTime,
                                      int finishedMaps,
                                      int finishedReduces,
                                      String status)
Create an event to record unsuccessful completion (killed/failed) of jobs

Parameters:
id - Job ID
finishTime - Finish time of the job
finishedMaps - Number of finished maps
finishedReduces - Number of finished reduces
status - Status of 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 datum)
Description copied from interface: HistoryEvent
Set the Avro datum wrapped by this.

Specified by:
setDatum 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


getFinishedReduces

public int getFinishedReduces()
Get the number of finished reduces


getStatus

public String getStatus()
Get the status


getEventType

public EventType getEventType()
Get the event type

Specified by:
getEventType in interface HistoryEvent


Copyright © 2012 Apache Software Foundation. All Rights Reserved.