public final class JmxUtil extends Object
Constructor and Description |
---|
JmxUtil() |
Modifier and Type | Method and Description |
---|---|
static MBeanServer |
findFirstMBeanServer()
Retrieve the first MBeanServer found and if not found return the platform mbean server
|
static MBeanServer |
findMBeanServerForAgentId(String agentId)
Find a MBeanServer given an agent id.
|
static MBeanServer |
findMBeanServerForServiceUrl(String serviceUrl)
Find a MBeanServer given a service url.
|
public static MBeanServer findFirstMBeanServer()
public static MBeanServer findMBeanServerForServiceUrl(String serviceUrl) throws IOException
serviceUrl
- the service urlIOException
public static MBeanServer findMBeanServerForAgentId(String agentId)
agentId
- the agent idCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.