|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.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 javax.management.MBeanServer |
locate()
Returns the first available MBeanServer |
static javax.management.MBeanServer |
locate(String agentID)
Returns the first MBeanServer registered under the agentID |
static javax.management.MBeanServer |
locateJBoss()
Returns the main jboss MBeanServer. |
static void |
setJBoss(javax.management.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(javax.management.MBeanServer server)
server
- the main jboss MBeanServer or nullpublic static javax.management.MBeanServer locate(String agentID)
agentID
- the id of the MBeanServer to look for
public static javax.management.MBeanServer locate()
public static javax.management.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 |