/** * Gets MBeans controlled by the MBean server. This method allows any of the following to be * obtained: All MBeans, a set of MBeans specified by pattern matching on the <CODE>ObjectName * </CODE> and/or a Query expression, a specific MBean. When the object name is null or no domain * and key properties are specified, all objects are to be selected (and filtered if a query is * specified). It returns the set of <CODE>ObjectInstance</CODE> objects (containing the <CODE> * ObjectName</CODE> and the Java Class name) for the selected MBeans. * * @param name The object name pattern identifying the MBeans to be retrieved. If null or or no * domain and key properties are specified, all the MBeans registered will be retrieved. * @param query The query expression to be applied for selecting MBeans. If null no query * expression will be applied for selecting MBeans. * @return A set containing the <CODE>ObjectInstance</CODE> objects for the selected MBeans. If no * MBean satisfies the query an empty list is returned. */ public Set queryMBeans(ObjectName name, QueryExp query) { return interceptor.queryMBeans(name, query); }