private void populate_Job (Hashtable<Enum, String> job, java.util.Map<JobHistory.Keys, String> jobC) throws ParseException {
    int size = jobC.size(); 
    java.util.Iterator<Map.Entry<JobHistory.Keys, String>> kv = jobC.entrySet().iterator();
    for (int i = 0; i < size; i++)
    {
      Map.Entry<JobHistory.Keys, String> entry = (Map.Entry<JobHistory.Keys, String>) kv.next();
      JobHistory.Keys key = entry.getKey();
      String value = entry.getValue();
      //System.out.println("JobHistory.JobKeys."+key+": "+value);
      switch (key) {
      case JOBTRACKERID: job.put(JobKeys.JOBTRACKERID, value); break;
      case FINISH_TIME: job.put(JobKeys.FINISH_TIME, value); break;
      case JOBID: job.put(JobKeys.JOBID, value); break;
      case JOBNAME: job.put(JobKeys.JOBNAME, value); break;
      case USER: job.put(JobKeys.USER, value); break;
      case JOBCONF: job.put(JobKeys.JOBCONF, value); break;
      case SUBMIT_TIME: job.put(JobKeys.SUBMIT_TIME, value); break;
      case LAUNCH_TIME: job.put(JobKeys.LAUNCH_TIME, value); break;
      case TOTAL_MAPS: job.put(JobKeys.TOTAL_MAPS, value); break;
      case TOTAL_REDUCES: job.put(JobKeys.TOTAL_REDUCES, value); break;
      case FAILED_MAPS: job.put(JobKeys.FAILED_MAPS, value); break;
      case FAILED_REDUCES: job.put(JobKeys.FAILED_REDUCES, value); break;
      case FINISHED_MAPS: job.put(JobKeys.FINISHED_MAPS, value); break;
      case FINISHED_REDUCES: job.put(JobKeys.FINISHED_REDUCES, value); break;
      case JOB_STATUS: job.put(JobKeys.STATUS, value); break;
      case JOB_PRIORITY: job.put(JobKeys.JOB_PRIORITY, value); break;
      case COUNTERS:
        value.concat(",");
        parseAndAddJobCounters(job, value);
        break;
      default:   System.err.println("JobHistory.Keys."+key+" : NOT INCLUDED IN PERFORMANCE ADVISOR COUNTERS");
               break;
      }
    }
  }
private void populate_Job ( Hashtable < Enum , String > job , java . util . Map < JobHistory . Keys , String > jobC ) throws ParseException { int size = jobC . size ( ) ; java . util . Iterator < Map . Entry < JobHistory . Keys , String > > kv = jobC . entrySet ( ) . iterator ( ) ; for ( int i = 0 ; i < size ; i ++ ) { Map . Entry < JobHistory . Keys , String > entry = ( Map . Entry < JobHistory . Keys , String > ) kv . next ( ) ; JobHistory . Keys key = entry . getKey ( ) ; String value = entry . getValue ( ) ; switch ( key ) { case JOBTRACKERID : job . put ( JobKeys . JOBTRACKERID , value ) ; break ; case FINISH_TIME : job . put ( JobKeys . FINISH_TIME , value ) ; break ; case JOBID : job . put ( JobKeys . JOBID , value ) ; break ; case JOBNAME : job . put ( JobKeys . JOBNAME , value ) ; break ; case USER : job . put ( JobKeys . USER , value ) ; break ; case JOBCONF : job . put ( JobKeys . JOBCONF , value ) ; break ; case SUBMIT_TIME : job . put ( JobKeys . SUBMIT_TIME , value ) ; break ; case LAUNCH_TIME : job . put ( JobKeys . LAUNCH_TIME , value ) ; break ; case TOTAL_MAPS : job . put ( JobKeys . TOTAL_MAPS , value ) ; break ; case TOTAL_REDUCES : job . put ( JobKeys . TOTAL_REDUCES , value ) ; break ; case FAILED_MAPS : job . put ( JobKeys . FAILED_MAPS , value ) ; break ; case FAILED_REDUCES : job . put ( JobKeys . FAILED_REDUCES , value ) ; break ; case FINISHED_MAPS : job . put ( JobKeys . FINISHED_MAPS , value ) ; break ; case FINISHED_REDUCES : job . put ( JobKeys . FINISHED_REDUCES , value ) ; break ; case JOB_STATUS : job . put ( JobKeys . STATUS , value ) ; break ; case JOB_PRIORITY : job . put ( JobKeys . JOB_PRIORITY , value ) ; break ; case COUNTERS : value . concat ( "," ) ; parseAndAddJobCounters ( job , value ) ; break ; default : System . err . println ( "JobHistory.Keys." + key + " : NOT INCLUDED IN PERFORMANCE ADVISOR COUNTERS" ) ; break ; } } }
/*
Popuate the job stats