org.apache.hadoop.mapreduce.jobhistory
Class JobPriorityChangeEvent

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

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

Event to record the change of priority of a job


Constructor Summary
JobPriorityChangeEvent(JobID id, JobPriority priority)
          Generate an event to record changes in Job priority
 
Method Summary
 Object getDatum()
          Return the Avro datum wrapped by this.
 EventType getEventType()
          Get the event type
 JobID getJobId()
          Get the Job ID
 JobPriority getPriority()
          Get the job priority
 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

JobPriorityChangeEvent

public JobPriorityChangeEvent(JobID id,
                              JobPriority priority)
Generate an event to record changes in Job priority

Parameters:
id - Job Id
priority - The new priority 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


getPriority

public JobPriority getPriority()
Get the job priority


getEventType

public EventType getEventType()
Get the event type

Specified by:
getEventType in interface HistoryEvent


Copyright © 2013 Apache Software Foundation. All Rights Reserved.