public void printAllValues ( ) throws Exception { err ( "List of all the available keys:" ) ; Object val = null ; for ( ObjectName oname : hadoopObjectNames ) { err ( ">>>>>>>>jmx name: " + oname . getCanonicalKeyPropertyListString ( ) ) ; MBeanInfo mbinfo = mbsc . getMBeanInfo ( oname ) ; MBeanAttributeInfo [ ] mbinfos = mbinfo . getAttributes ( ) ; for ( MBeanAttributeInfo mb : mbinfos ) { val = mbsc . getAttribute ( oname , mb . getName ( ) ) ; System . out . format ( format , mb . getName ( ) , val . toString ( ) ) ; } } }
print all attributes values