@InterfaceAudience.Private @InterfaceStability.Unstable public class JobInfoChangeEvent extends Object implements HistoryEvent
Constructor and Description |
---|
JobInfoChangeEvent(JobID id,
long submitTime,
long launchTime)
Create a event to record the submit and launch time of a job
|
Modifier and Type | Method and Description |
---|---|
Object |
getDatum()
Return the Avro datum wrapped by this.
|
EventType |
getEventType()
Return this event's type.
|
JobID |
getJobId()
Get the Job ID
|
long |
getLaunchTime()
Get the Job launch time
|
long |
getSubmitTime()
Get the Job submit time
|
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 JobInfoChangeEvent(JobID id, long submitTime, long launchTime)
id
- Job IdsubmitTime
- Submit time of the joblaunchTime
- Launch time of the jobpublic Object getDatum()
HistoryEvent
getDatum
in interface HistoryEvent
public void setDatum(Object datum)
HistoryEvent
setDatum
in interface HistoryEvent
public JobID getJobId()
public long getSubmitTime()
public long getLaunchTime()
public EventType getEventType()
HistoryEvent
getEventType
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.