@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()
HistoryEvent
getEventType
in interface HistoryEvent
public Object getDatum()
HistoryEvent
getDatum
in interface HistoryEvent
public void setDatum(Object datum)
HistoryEvent
setDatum
in interface HistoryEvent
Copyright © 2017 Apache Software Foundation. All Rights Reserved.