public class JobImpl extends Object implements Job, EventHandler<JobEvent>
| Modifier and Type | Class and Description |
|---|---|
static class |
JobImpl.InitTransition |
static class |
JobImpl.StartTransition |
| Modifier and Type | Field and Description |
|---|---|
JobConf |
conf |
Path |
remoteJobConfFile |
protected static StateMachineFactory<JobImpl,JobStateInternal,JobEventType,JobEvent> |
stateMachineFactory |
| Constructor and Description |
|---|
JobImpl(JobId jobId,
ApplicationAttemptId applicationAttemptId,
Configuration conf,
EventHandler eventHandler,
TaskAttemptListener taskAttemptListener,
JobTokenSecretManager jobTokenSecretManager,
Credentials jobCredentials,
Clock clock,
Map<TaskId,JobHistoryParser.TaskInfo> completedTasksFromPreviousRun,
MRAppMetrics metrics,
OutputCommitter committer,
boolean newApiCommitter,
String userName,
long appSubmitTime,
List<AMInfo> amInfos,
AppContext appContext,
JobStateInternal forcedState,
String forcedDiagnostic) |
public JobConf conf
public Path remoteJobConfFile
protected static final StateMachineFactory<JobImpl,JobStateInternal,JobEventType,JobEvent> stateMachineFactory
public JobImpl(JobId jobId, ApplicationAttemptId applicationAttemptId, Configuration conf, EventHandler eventHandler, TaskAttemptListener taskAttemptListener, JobTokenSecretManager jobTokenSecretManager, Credentials jobCredentials, Clock clock, Map<TaskId,JobHistoryParser.TaskInfo> completedTasksFromPreviousRun, MRAppMetrics metrics, OutputCommitter committer, boolean newApiCommitter, String userName, long appSubmitTime, List<AMInfo> amInfos, AppContext appContext, JobStateInternal forcedState, String forcedDiagnostic)
protected StateMachine<JobStateInternal,JobEventType,JobEvent> getStateMachine()
public boolean checkAccess(UserGroupInformation callerUGI, JobACL jobOperation)
checkAccess in interface Jobpublic int getCompletedMaps()
getCompletedMaps in interface Jobpublic int getCompletedReduces()
getCompletedReduces in interface Jobpublic Counters getAllCounters()
JobgetAllCounters in interface Jobpublic static Counters incrTaskCounters(Counters counters, Collection<Task> tasks)
public TaskAttemptCompletionEvent[] getTaskAttemptCompletionEvents(int fromEventId, int maxEvents)
getTaskAttemptCompletionEvents in interface Jobpublic TaskCompletionEvent[] getMapAttemptCompletionEvents(int startIndex, int maxEvents)
getMapAttemptCompletionEvents in interface Jobpublic List<String> getDiagnostics()
getDiagnostics in interface Jobpublic float getProgress()
getProgress in interface Jobpublic void handle(JobEvent event)
handle in interface EventHandler<JobEvent>@InterfaceAudience.Private public JobStateInternal getInternalState()
protected void addTask(Task task)
protected FileSystem getFileSystem(Configuration conf) throws IOException
conf - the conf objectIOExceptionprotected JobStateInternal checkReadyForCommit()
public String getUserName()
getUserName in interface Jobpublic String getQueueName()
getQueueName in interface Jobpublic Path getConfFile()
getConfFile in interface Jobpublic int getTotalMaps()
getTotalMaps in interface Jobpublic int getTotalReduces()
getTotalReduces in interface Jobpublic Map<JobACL,AccessControlList> getJobACLs()
getJobACLs in interface Jobpublic List<AMInfo> getAMInfos()
getAMInfos in interface Job@InterfaceAudience.Private public void constructFinalFullcounters()
protected void addDiagnostic(String diag)
public Configuration loadConfFile() throws IOException
loadConfFile in interface JobJob.getConfFile().IOException - on any error trying to load the conf file.Copyright © 2013 Apache Software Foundation. All rights reserved.