mirror of https://github.com/apache/activemq.git
Refactored ManagementContext to improve encapsulation - so all registrations of MBeans happen in one place
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@800335 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d779c4aecd
commit
ac4545b40d
|
@ -39,6 +39,7 @@ import javax.management.MalformedObjectNameException;
|
|||
import javax.management.NotCompliantMBeanException;
|
||||
import javax.management.ObjectInstance;
|
||||
import javax.management.ObjectName;
|
||||
import javax.management.QueryExp;
|
||||
import javax.management.remote.JMXConnectorServer;
|
||||
import javax.management.remote.JMXConnectorServerFactory;
|
||||
import javax.management.remote.JMXServiceURL;
|
||||
|
@ -297,6 +298,10 @@ public class ManagementContext implements Service {
|
|||
return result;
|
||||
}
|
||||
|
||||
public Set queryNames(ObjectName name, QueryExp query) throws Exception{
|
||||
return getMBeanServer().queryNames(name, query);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unregister an MBean
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue