@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()
HistoryEventgetEventType in interface HistoryEventpublic Object getDatum()
HistoryEventgetDatum in interface HistoryEventpublic void setDatum(Object datum)
HistoryEventsetDatum in interface HistoryEventpublic org.apache.hadoop.yarn.api.records.timelineservice.TimelineEvent toTimelineEvent()
HistoryEventtoTimelineEvent in interface HistoryEventpublic Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> getTimelineMetrics()
HistoryEventgetTimelineMetrics in interface HistoryEventCopyright © 2022 Apache Software Foundation. All rights reserved.