private List < String > getAllAttributesNames ( MBeanServerExecutor pServerManager , ObjectName pObjectName ) throws IOException , ReflectionException , MBeanException , AttributeNotFoundException , InstanceNotFoundException { MBeanInfo mBeanInfo = getMBeanInfo ( pServerManager , pObjectName ) ; List < String > ret = new ArrayList < String > ( ) ; for ( MBeanAttributeInfo attrInfo : mBeanInfo . getAttributes ( ) ) { if ( attrInfo . isReadable ( ) ) { ret . add ( attrInfo . getName ( ) ) ; } } return ret ; }
Return a set of attributes as a map with the attribute name as key and their values as values