AppContextpublic class MRAppMaster.RunningAppContext extends java.lang.Object implements AppContext
| Constructor | Description |
|---|---|
RunningAppContext(org.apache.hadoop.conf.Configuration config,
TaskAttemptFinishingMonitor taskAttemptFinishingMonitor) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<org.apache.hadoop.mapreduce.v2.api.records.JobId,Job> |
getAllJobs() |
|
org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
getApplicationAttemptId() |
|
org.apache.hadoop.yarn.api.records.ApplicationId |
getApplicationID() |
|
java.lang.String |
getApplicationName() |
|
java.util.Set<java.lang.String> |
getBlacklistedNodes() |
|
org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager |
getClientToAMTokenSecretManager() |
|
org.apache.hadoop.yarn.util.Clock |
getClock() |
|
ClusterInfo |
getClusterInfo() |
|
org.apache.hadoop.yarn.event.EventHandler<org.apache.hadoop.yarn.event.Event> |
getEventHandler() |
|
java.lang.String |
getHistoryUrl() |
|
Job |
getJob(org.apache.hadoop.mapreduce.v2.api.records.JobId jobID) |
|
java.lang.String |
getNMHostname() |
|
long |
getStartTime() |
|
TaskAttemptFinishingMonitor |
getTaskAttemptFinishingMonitor() |
|
org.apache.hadoop.yarn.client.api.TimelineClient |
getTimelineClient() |
|
org.apache.hadoop.yarn.client.api.TimelineV2Client |
getTimelineV2Client() |
|
java.lang.CharSequence |
getUser() |
|
boolean |
hasSuccessfullyUnregistered() |
|
boolean |
isLastAMRetry() |
|
void |
markSuccessfulUnregistration() |
|
void |
resetIsLastAMRetry() |
|
void |
setHistoryUrl(java.lang.String historyUrl) |
public RunningAppContext(org.apache.hadoop.conf.Configuration config,
TaskAttemptFinishingMonitor taskAttemptFinishingMonitor)
public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
getApplicationAttemptId in interface AppContextpublic org.apache.hadoop.yarn.api.records.ApplicationId getApplicationID()
getApplicationID in interface AppContextpublic java.lang.String getApplicationName()
getApplicationName in interface AppContextpublic long getStartTime()
getStartTime in interface AppContextpublic Job getJob(org.apache.hadoop.mapreduce.v2.api.records.JobId jobID)
getJob in interface AppContextpublic java.util.Map<org.apache.hadoop.mapreduce.v2.api.records.JobId,Job> getAllJobs()
getAllJobs in interface AppContextpublic org.apache.hadoop.yarn.event.EventHandler<org.apache.hadoop.yarn.event.Event> getEventHandler()
getEventHandler in interface AppContextpublic java.lang.CharSequence getUser()
getUser in interface AppContextpublic org.apache.hadoop.yarn.util.Clock getClock()
getClock in interface AppContextpublic ClusterInfo getClusterInfo()
getClusterInfo in interface AppContextpublic java.util.Set<java.lang.String> getBlacklistedNodes()
getBlacklistedNodes in interface AppContextpublic org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager getClientToAMTokenSecretManager()
getClientToAMTokenSecretManager in interface AppContextpublic boolean isLastAMRetry()
isLastAMRetry in interface AppContextpublic boolean hasSuccessfullyUnregistered()
hasSuccessfullyUnregistered in interface AppContextpublic void markSuccessfulUnregistration()
public void resetIsLastAMRetry()
public java.lang.String getNMHostname()
getNMHostname in interface AppContextpublic TaskAttemptFinishingMonitor getTaskAttemptFinishingMonitor()
getTaskAttemptFinishingMonitor in interface AppContextpublic org.apache.hadoop.yarn.client.api.TimelineClient getTimelineClient()
public org.apache.hadoop.yarn.client.api.TimelineV2Client getTimelineV2Client()
public java.lang.String getHistoryUrl()
getHistoryUrl in interface AppContextpublic void setHistoryUrl(java.lang.String historyUrl)
setHistoryUrl in interface AppContextCopyright © 2008–2025 Apache Software Foundation. All rights reserved.