public class MBeanServerLocator extends Object
Modifier and Type | Method and Description |
---|---|
static MBeanServer |
locate()
Returns the first available MBeanServer
|
static MBeanServer |
locate(String agentID)
Returns the first MBeanServer registered under the agentID
|
static MBeanServer |
locateJBoss()
Returns the main jboss MBeanServer.
|
static void |
setJBoss(MBeanServer server)
Optionally set the MBeanServer to be returned
by calls to locateJBoss().
|
public static void setJBoss(MBeanServer server)
server
- the main jboss MBeanServer or nullpublic static MBeanServer locate(String agentID)
agentID
- the id of the MBeanServer to look forpublic static MBeanServer locate()
public static MBeanServer locateJBoss()
IllegalStateException
- when no MBeanServer can be foundCopyright © 2019 JBoss by Red Hat. All rights reserved.