org.jboss.mx.remoting
Class JMXUtil

java.lang.Object
  extended byorg.jboss.mx.remoting.JMXUtil

public class JMXUtil
extends java.lang.Object

JMXUtil is a set of utility functions for dealing with JMX servers and MBeans


Constructor Summary
JMXUtil()
           
 
Method Summary
static MBeanServer (src) getMBeanServer()
          return the local MbeanServer by using the system property jboss.remoting.jmxid which is set by the NetworkRegistry MBean when registered in the mbean server
static ObjectName (src) getMBeanServerObjectName()
          get the ObjectName of the MBeanServer
static java.lang.String getServerId(MBeanServer (src)  server)
          get the MBeanServerId attribute from the server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXUtil

public JMXUtil()
Method Detail

getMBeanServer

public static MBeanServer (src)  getMBeanServer()
return the local MbeanServer by using the system property jboss.remoting.jmxid which is set by the NetworkRegistry MBean when registered in the mbean server

Returns:

getMBeanServerObjectName

public static final ObjectName (src)  getMBeanServerObjectName()
                                                 throws java.lang.Exception
get the ObjectName of the MBeanServer

Returns:
object name of the mbean server delegate
Throws:
java.lang.Exception

getServerId

public static final java.lang.String getServerId(MBeanServer (src)  server)
                                          throws java.lang.Exception
get the MBeanServerId attribute from the server

Parameters:
server -
Returns:
mbean server id
Throws:
java.lang.Exception