@InterfaceAudience.Private @InterfaceStability.Unstable public class AMStartedEvent extends Object implements HistoryEvent
| Constructor and Description |
|---|
AMStartedEvent(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
long startTime,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
String nodeManagerHost,
int nodeManagerPort,
int nodeManagerHttpPort,
long submitTime)
Create an event to record the start of an MR AppMaster
|
AMStartedEvent(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
long startTime,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
String nodeManagerHost,
int nodeManagerPort,
int nodeManagerHttpPort,
String forcedJobStateOnShutDown,
long submitTime)
Create an event to record the start of an MR AppMaster
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
getAppAttemptId() |
org.apache.hadoop.yarn.api.records.ContainerId |
getContainerId() |
Object |
getDatum()
Return the Avro datum wrapped by this.
|
EventType |
getEventType()
Get the attempt id
|
String |
getForcedJobStateOnShutDown() |
String |
getNodeManagerHost() |
int |
getNodeManagerHttpPort() |
int |
getNodeManagerPort() |
long |
getStartTime() |
long |
getSubmitTime() |
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 AMStartedEvent(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
long startTime,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
String nodeManagerHost,
int nodeManagerPort,
int nodeManagerHttpPort,
long submitTime)
appAttemptId - the application attempt id.startTime - the start time of the AM.containerId - the containerId of the AM.nodeManagerHost - the node on which the AM is running.nodeManagerPort - the port on which the AM is running.nodeManagerHttpPort - the httpPort for the node running the AM.public AMStartedEvent(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
long startTime,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
String nodeManagerHost,
int nodeManagerPort,
int nodeManagerHttpPort,
String forcedJobStateOnShutDown,
long submitTime)
appAttemptId - the application attempt id.startTime - the start time of the AM.containerId - the containerId of the AM.nodeManagerHost - the node on which the AM is running.nodeManagerPort - the port on which the AM is running.nodeManagerHttpPort - the httpPort for the node running the AM.forcedJobStateOnShutDown - the state to force the job intopublic Object getDatum()
HistoryEventgetDatum in interface HistoryEventpublic void setDatum(Object datum)
HistoryEventsetDatum in interface HistoryEventpublic org.apache.hadoop.yarn.api.records.ApplicationAttemptId getAppAttemptId()
public long getStartTime()
public org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
public String getNodeManagerHost()
public int getNodeManagerPort()
public int getNodeManagerHttpPort()
public String getForcedJobStateOnShutDown()
public long getSubmitTime()
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.