Query MBeans

Often, you do not know the full name of an MBean in advance, but you want to query all MBeans whose ObjectNames match a given pattern. The following example returns all MBeans of a certain type on the given node:

Another example shows a query that returns all MBeans of a certain type on all nodes. This will result in a broadcast to all cluster elements, performed by the MBean Server internally: