public class MRAppMaster.RunningAppContext extends Object implements AppContext
| Constructor and Description |
|---|
RunningAppContext(Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
Map<JobId,Job> |
getAllJobs() |
org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
getApplicationAttemptId() |
org.apache.hadoop.yarn.api.records.ApplicationId |
getApplicationID() |
String |
getApplicationName() |
Set<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 |
getEventHandler() |
Job |
getJob(JobId jobID) |
String |
getNMHostname() |
long |
getStartTime() |
CharSequence |
getUser() |
boolean |
hasSuccessfullyUnregistered() |
boolean |
isLastAMRetry() |
void |
markSuccessfulUnregistration() |
void |
resetIsLastAMRetry() |
public RunningAppContext(Configuration config)
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 String getApplicationName()
getApplicationName in interface AppContextpublic long getStartTime()
getStartTime in interface AppContextpublic Job getJob(JobId jobID)
getJob in interface AppContextpublic Map<JobId,Job> getAllJobs()
getAllJobs in interface AppContextpublic org.apache.hadoop.yarn.event.EventHandler getEventHandler()
getEventHandler in interface AppContextpublic CharSequence getUser()
getUser in interface AppContextpublic org.apache.hadoop.yarn.util.Clock getClock()
getClock in interface AppContextpublic ClusterInfo getClusterInfo()
getClusterInfo in interface AppContextpublic Set<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 String getNMHostname()
getNMHostname in interface AppContextCopyright © 2018 CERN. All Rights Reserved.