public void run ( ) { try { for ( String mbean : mbeanMap . keySet ( ) ) { MBeanHolder h = mbeanMap . get ( mbean ) ; h . publish ( ) ; } } catch ( Exception ex ) { // Robust exception to prevent thread death log . warning ( "Exception thrown sampling Mbeans" ) ; log . throwing ( this . getClass ( ) . getName ( ) , "Exception thrown sampling Mbeans:" , ex ) ; } }
Called by the JMXAgent periodically to sample the mbeans