@InterfaceAudience.Private @InterfaceStability.Unstable public class JobInitedEvent extends Object implements HistoryEvent
| Constructor and Description |
|---|
JobInitedEvent(JobID id,
long launchTime,
int totalMaps,
int totalReduces,
String jobStatus,
boolean uberized)
Create an event to record job initialization
|
| 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
|
long |
getLaunchTime()
Get the launch time
|
String |
getStatus()
Get the status
|
Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> |
getTimelineMetrics()
Counters or Metrics if any else return null.
|
int |
getTotalMaps()
Get the total number of maps
|
int |
getTotalReduces()
Get the total number of reduces
|
boolean |
getUberized()
Get whether the job's map and reduce stages were combined
|
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 JobInitedEvent(JobID id, long launchTime, int totalMaps, int totalReduces, String jobStatus, boolean uberized)
id - launchTime - totalMaps - totalReduces - jobStatus - uberized - True if the job's map and reduce stages were combinedpublic Object getDatum()
HistoryEventgetDatum in interface HistoryEventpublic void setDatum(Object datum)
HistoryEventsetDatum in interface HistoryEventpublic JobID getJobId()
public long getLaunchTime()
public int getTotalMaps()
public int getTotalReduces()
public String getStatus()
public EventType getEventType()
getEventType in interface HistoryEventpublic boolean getUberized()
public 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 © 2008–2022 Apache Software Foundation. All rights reserved.