org.apache.hadoop.mapreduce.jobhistory
Class JobStatusChangedEvent

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

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

Event to record the change of status for a job


Constructor Summary
JobStatusChangedEvent(JobID id, String jobStatus)
          Create an event to record the change in the Job Status
 
Method Summary
 Object getDatum()
          Return the Avro datum wrapped by this.
 EventType getEventType()
          Get the event type
 JobID getJobId()
          Get the Job Id
 String getStatus()
          Get the event 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

JobStatusChangedEvent

public JobStatusChangedEvent(JobID id,
                             String jobStatus)
Create an event to record the change in the Job Status

Parameters:
id - Job ID
jobStatus - The new job status
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


getStatus

public String getStatus()
Get the event status


getEventType

public EventType getEventType()
Get the event type

Specified by:
getEventType in interface HistoryEvent


Copyright © 2012 Apache Software Foundation. All Rights Reserved.