@InterfaceAudience.Private @InterfaceStability.Unstable public class NormalizedResourceEvent extends Object implements HistoryEvent
| Constructor and Description |
|---|
NormalizedResourceEvent(TaskType taskType,
int memory)
Normalized request when sent to the Resource Manager.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public NormalizedResourceEvent(TaskType taskType, int memory)
taskType - the tasktype of the request.memory - the normalized memory requirements.public TaskType getTaskType()
public int getMemory()
public EventType getEventType()
HistoryEventgetEventType in interface HistoryEventpublic Object getDatum()
HistoryEventgetDatum in interface HistoryEventpublic void setDatum(Object datum)
HistoryEventsetDatum in interface HistoryEventCopyright © 2016 Apache Software Foundation. All Rights Reserved.