protected void introspect ( ObjectName objectName , QueryExp query , PrintWriter writer ) { // Iterate over the mbean servers, query for the beans, introspect for ( MBeanServer mbeanServer : getMBeanServers ( ) ) { for ( ObjectName mbean : mbeanServer . queryNames ( objectName , query ) ) { introspectMBeanAttributes ( mbeanServer , mbean , writer ) ; } } }
GIven a JMX object name and a filter introspect all matching MBeans that are found associated with registered MBean servers .