public String getAttributeString ( ObjectName name , String attributeName ) throws Exception { Object bean = getAttribute ( name , attributeName ) ; if ( bean == null ) { return null ; } else { return ClientUtils . valueToString ( bean ) ; } }
Return the value of a JMX attribute as a String or null if attribute has a null value .