protected Set < ObjectName > searchMBeans ( MBeanServerExecutor pMBeanServerExecutor , String pMbeanPattern ) { try { ObjectName oName = new ObjectName ( pMbeanPattern ) ; return pMBeanServerExecutor . queryNames ( oName ) ; } catch ( MalformedObjectNameException e ) { return new HashSet < ObjectName > ( ) ; } catch ( IOException e ) { return new HashSet < ObjectName > ( ) ; } }
Check for the existence of a certain MBean . All known MBeanServers are queried