|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.MBeanServerLocator
public class MBeanServerLocator
A helper class to locate an MBeanServer. MBeanServer lookup strategy enhanced to allow the explicit setting of a particular instance to be returned. This is needed to allow re-using the jdk5 ManagementFactory.getPlatformMBeanServer() as our main MBeanServer. The DefaultDomain name of this server cannot be set, and it seems to be "null" by default (probably a bug).
| Method Summary | |
|---|---|
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(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 for
public static MBeanServer locate()
public static MBeanServer locateJBoss()
IllegalStateException - when no MBeanServer can be found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||