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