org.jboss.mx.remoting
Class JMXUtil

java.lang.Object
  extended by org.jboss.mx.remoting.JMXUtil

public class JMXUtil
extends Object

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

Version:
$Revision: 81084 $
Author:
Jeff Haynie

Constructor Summary
JMXUtil()
           
 
Method Summary
static MBeanServer 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 getMBeanServerObjectName()
          get the ObjectName of the MBeanServer
static String getServerId(MBeanServer 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 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 getMBeanServerObjectName()
                                                 throws Exception
get the ObjectName of the MBeanServer

Returns:
object name of the mbean server delegate
Throws:
Exception

getServerId

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

Parameters:
server -
Returns:
mbean server id
Throws:
Exception


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.