this.profile.getUser(), this.profile.getJobName(), this.profile.getJobFile(), ""); this.jobtracker.getInstrumentation().addPrepJob(conf, jobid); this.taskCompletionEvents = new ArrayList<TaskCompletionEvent> (numMapTasks + numReduceTasks + 10);
/** * Job state change must happen thru this call */ private void changeStateTo(int newState) { int oldState = this.status.getRunState(); if (oldState == newState) { return; //old and new states are same } this.status.setRunState(newState); //update the metrics if (oldState == JobStatus.PREP) { this.jobtracker.getInstrumentation().decPrepJob(conf, jobId); } else if (oldState == JobStatus.RUNNING) { this.jobtracker.getInstrumentation().decRunningJob(conf, jobId); } if (newState == JobStatus.PREP) { this.jobtracker.getInstrumentation().addPrepJob(conf, jobId); } else if (newState == JobStatus.RUNNING) { this.jobtracker.getInstrumentation().addRunningJob(conf, jobId); } }
/** * Job state change must happen thru this call */ private void changeStateTo(int newState) { int oldState = this.status.getRunState(); if (oldState == newState) { return; //old and new states are same } this.status.setRunState(newState); //update the metrics if (oldState == JobStatus.PREP) { this.jobtracker.getInstrumentation().decPrepJob(conf, jobId); } else if (oldState == JobStatus.RUNNING) { this.jobtracker.getInstrumentation().decRunningJob(conf, jobId); } if (newState == JobStatus.PREP) { this.jobtracker.getInstrumentation().addPrepJob(conf, jobId); } else if (newState == JobStatus.RUNNING) { this.jobtracker.getInstrumentation().addRunningJob(conf, jobId); } }
this.jobtracker = jobtracker; this.status = new JobStatus(jobid, 0.0f, 0.0f, JobStatus.PREP); this.jobtracker.getInstrumentation().addPrepJob(conf, jobid); this.startTime = JobTracker.getClock().getTime(); status.setStartTime(startTime);
profile.getUser(), profile.getJobName(), profile.getJobFile(), profile.getURL().toString()); this.jobtracker.getInstrumentation().addPrepJob(conf, this.jobId); status.setStartTime(startTime); this.status.setJobPriority(this.priority);