org.apache.hadoop.mapreduce.jobhistory
Class NormalizedResourceEvent

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

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

Event to record the normalized map/reduce requirements.


Constructor Summary
NormalizedResourceEvent(TaskType taskType, int memory)
          Normalized request when sent to the Resource Manager.
 
Method Summary
 Object getDatum()
          Return the Avro datum wrapped by this.
 EventType getEventType()
          Return this event's type.
 int getMemory()
          the normalized memory
 TaskType getTaskType()
          the tasktype for the event.
 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

NormalizedResourceEvent

public NormalizedResourceEvent(TaskType taskType,
                               int memory)
Normalized request when sent to the Resource Manager.

Parameters:
taskType - the tasktype of the request.
memory - the normalized memory requirements.
Method Detail

getTaskType

public TaskType getTaskType()
the tasktype for the event.

Returns:
the tasktype for the event.

getMemory

public int getMemory()
the normalized memory

Returns:
the normalized memory

getEventType

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

Specified by:
getEventType in interface HistoryEvent

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


Copyright © 2012 Apache Software Foundation. All Rights Reserved.