@InterfaceAudience.Private @InterfaceStability.Unstable public class NormalizedResourceEvent extends Object implements HistoryEvent
Constructor and Description |
---|
NormalizedResourceEvent(TaskType taskType,
long 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.
|
long |
getMemory()
the normalized memory
|
TaskType |
getTaskType()
the tasktype for the event.
|
Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> |
getTimelineMetrics()
Counters or Metrics if any else return null.
|
void |
setDatum(Object datum)
Set the Avro datum wrapped by this.
|
org.apache.hadoop.yarn.api.records.timelineservice.TimelineEvent |
toTimelineEvent()
Map HistoryEvent to TimelineEvent.
|
public NormalizedResourceEvent(TaskType taskType, long memory)
taskType
- the tasktype of the request.memory
- the normalized memory requirements.public TaskType getTaskType()
public long 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
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEvent toTimelineEvent()
HistoryEvent
toTimelineEvent
in interface HistoryEvent
public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> getTimelineMetrics()
HistoryEvent
getTimelineMetrics
in interface HistoryEvent
Copyright © 2019 Apache Software Foundation. All Rights Reserved.