Package org.apache.solr.util
Class JmxUtil
java.lang.Object
org.apache.solr.util.JmxUtil
Utility methods to find a MBeanServer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MBeanServerRetrieve the first MBeanServer found and if not found return the platform mbean serverstatic MBeanServerfindMBeanServerForAgentId(String agentId) Find a MBeanServer given an agent id.static MBeanServerfindMBeanServerForServiceUrl(String serviceUrl) Find a MBeanServer given a service url.
-
Constructor Details
-
JmxUtil
public JmxUtil()
-
-
Method Details
-
findFirstMBeanServer
Retrieve the first MBeanServer found and if not found return the platform mbean server- Returns:
- the first MBeanServer found
-
findMBeanServerForServiceUrl
Find a MBeanServer given a service url.- Parameters:
serviceUrl- the service url- Returns:
- a MBeanServer
- Throws:
IOException
-
findMBeanServerForAgentId
Find a MBeanServer given an agent id.- Parameters:
agentId- the agent id- Returns:
- a MBeanServer
-