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)); } }
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; }