@InterfaceAudience.Private @InterfaceStability.Unstable public class JobPriorityChangeEvent extends Object implements HistoryEvent
| Constructor and Description |
|---|
JobPriorityChangeEvent(JobID id,
JobPriority priority)
Generate an event to record changes in Job priority
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getDatum()
Return the Avro datum wrapped by this.
|
EventType |
getEventType()
Get the event type
|
JobID |
getJobId()
Get the Job ID
|
JobPriority |
getPriority()
Get the job priority
|
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 JobPriorityChangeEvent(JobID id, JobPriority priority)
id - Job Idpriority - The new priority of the jobpublic Object getDatum()
HistoryEventgetDatum in interface HistoryEventpublic void setDatum(Object datum)
HistoryEventsetDatum in interface HistoryEventpublic JobID getJobId()
public JobPriority getPriority()
public EventType getEventType()
getEventType 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.