public AttributeList getAttributes(String[] attributes) { AttributeList attList = null; try{ attList = this.conn.getAttributes(this.runtimeObjName, attributes); AttributeList jsrList = createAddAttributes(); attList.addAll(jsrList); }catch(Exception ex){ //System.out.println("Error in getAttributes of ServerInfo " + ex.getMessage()); return attList; } return attList; }
public AttributeList setAttributesTransactionally(final AttributeList attrs) throws Exception { final AttributeList successList = new AttributeList(); try { final AttributeList delegateSuccess = setAttributesInConfigBean(attrs); successList.addAll(delegateSuccess); } catch (final Exception e) { // propogate the stack trace back, it's important for clients to have something to go on final Throwable rootCause = ExceptionUtil.getRootCause(e); // do not propagate back any proprietary exception; class might not exist on client throw new Exception( ExceptionUtil.toString(rootCause) ); } return successList; }
try { AttributeList attributesRate = getAttributesRate(context, onGot, attsRate, currentValues); attl.addAll(attributesRate); } catch (MalformedObjectNameException ex) { ex.printStackTrace(); try { AttributeList attributesDelta = getAttributesDelta(context, onGot, attsDelta, currentValues); attl.addAll(attributesDelta); } catch (MalformedObjectNameException ex) { ex.printStackTrace(); try { AttributeList attributesSlope = getAttributesSlope(context, onGot, attsSlope, currentValues); attl.addAll(attributesSlope); } catch (MalformedObjectNameException ex) { ex.printStackTrace();
successfulAttrs.addAll(attrsIn);