Esempio n. 1
0
 /**
  * Load the task profile auxiliary counters from the XML element to the profile
  *
  * @param taskProf the task profile
  * @param task the task XML element
  */
 private void loadTaskProfileAuxCounters(MRTaskProfile taskProf, Element task) {
   Element counters = (Element) task.getElementsByTagName(AUX_COUNTERS).item(0);
   if (counters != null) {
     NodeList counterList = counters.getElementsByTagName(AUX_COUNTER);
     for (int j = 0; j < counterList.getLength(); ++j) {
       Element counter = (Element) counterList.item(j);
       taskProf.addAuxCounter(
           counter.getAttribute(KEY), Long.parseLong(counter.getAttribute(VALUE)));
     }
   }
 }