Example #1
0
 private void mergeAttributes(JobSpecification js, Map attrs) {
   Iterator i = js.getAttributeNames().iterator();
   while (i.hasNext()) {
     String attrName = (String) i.next();
     if (attrName.equals("maxwalltime")) continue;
     attrs.put(attrName, js.getAttribute(attrName));
   }
 }
Example #2
0
 private boolean detectAttributeConflict(JobSpecification js, Map attrs) {
   Iterator ia = js.getAttributeNames().iterator();
   while (ia.hasNext()) {
     String attrName = (String) ia.next();
     if (attrName.equals("maxwalltime")) {
       continue;
     }
     Object value = attrs.get(attrName);
     if (value != null && !value.equals(js.getAttribute(attrName))) {
       return true;
     }
   }
   return false;
 }