public abstract class JmxUtilities extends Object
Constructor and Description |
---|
JmxUtilities() |
Modifier and Type | Method and Description |
---|---|
static MBeanServerConnection |
connectMBeanServer(String server)
Attempt to connect to a remote
MBeanServer . |
static MBeanServer |
locateMBeanServer() |
static MBeanServer |
locateMBeanServer(String agent)
Attempt to find a locally running
MBeanServer . |
public static MBeanServer locateMBeanServer(String agent) throws MBeanServerException
MBeanServer
. Fails if no
MBeanServer
can be found. If multiple servers are found,
simply returns the first one from the list.agent
- the agent identifier of the MBeanServer to retrieve.
If this parameter is null
, all registered MBeanServers are
considered.MBeanServer
if any are foundMBeanServerException
- if no MBeanServer
could be foundMBeanServerFactory.findMBeanServer(String)
public static MBeanServer locateMBeanServer() throws MBeanServerException
MBeanServerException
public static MBeanServerConnection connectMBeanServer(String server) throws MBeanServerException
MBeanServer
. Fails if no
MBeanServer
connection can be established.MBeanServerException
Copyright © 2009-2019 Performance Co-Pilot. All Rights Reserved.