net.sf.xbus.admin.jmx
Class AdministratorJMXServer

java.lang.Object
  extended by net.sf.xbus.admin.jmx.AdministratorJMXServer

public class AdministratorJMXServer
extends java.lang.Object


Field Summary
protected static java.lang.String ADMINISTRATION_MBEAN
           
 
Constructor Summary
AdministratorJMXServer()
           
 
Method Summary
protected static javax.management.remote.JMXServiceURL getJMXServiceURL()
          Returns an URL to address the JMXServer.
protected static javax.management.MBeanServerConnection getMBeanServer()
          Returns a connection to the JMXServer.
protected static java.lang.String getPassword()
          Returns the password to access the JMX server, read out of the configuration.
protected static java.lang.String getUser()
          Returns the user to access the JMX server, read out of the configuration.
static void start()
          Starts the JMX server
static void stop()
          Stops the JMX server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADMINISTRATION_MBEAN

protected static final java.lang.String ADMINISTRATION_MBEAN
See Also:
Constant Field Values
Constructor Detail

AdministratorJMXServer

public AdministratorJMXServer()
Method Detail

start

public static void start()
Starts the JMX server


stop

public static void stop()
Stops the JMX server


getMBeanServer

protected static javax.management.MBeanServerConnection getMBeanServer()
                                                                throws XException
Returns a connection to the JMXServer.

Returns:
a connection to the JMXServer
Throws:
XException - if something goes wrong

getJMXServiceURL

protected static javax.management.remote.JMXServiceURL getJMXServiceURL()
                                                                 throws XException
Returns an URL to address the JMXServer. Host and port are read out of the configuration.

Returns:
an URL to address the JMXServer
Throws:
XException - if something goes wrong

getUser

protected static java.lang.String getUser()
                                   throws XException
Returns the user to access the JMX server, read out of the configuration.

Returns:
the user to access the JMX server
Throws:
XException - if something goes wrong

getPassword

protected static java.lang.String getPassword()
                                       throws XException
Returns the password to access the JMX server, read out of the configuration.

Returns:
the password to access the JMX server
Throws:
XException - if something goes wrong