Package org.apache.solr.util
Class JmxUtil
- java.lang.Object
- 
- org.apache.solr.util.JmxUtil
 
- 
 public final class JmxUtil extends Object Utility methods to find a MBeanServer.
- 
- 
Constructor SummaryConstructors Constructor Description JmxUtil()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static MBeanServerfindFirstMBeanServer()Retrieve 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.
 
- 
- 
- 
Method Detail- 
findFirstMBeanServerpublic static MBeanServer findFirstMBeanServer() Retrieve the first MBeanServer found and if not found return the platform mbean server- Returns:
- the first MBeanServer found
 
 - 
findMBeanServerForServiceUrlpublic static MBeanServer findMBeanServerForServiceUrl(String serviceUrl) throws IOException Find a MBeanServer given a service url.- Parameters:
- serviceUrl- the service url
- Returns:
- a MBeanServer
- Throws:
- IOException
 
 - 
findMBeanServerForAgentIdpublic static MBeanServer findMBeanServerForAgentId(String agentId) Find a MBeanServer given an agent id.- Parameters:
- agentId- the agent id
- Returns:
- a MBeanServer
 
 
- 
 
-