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