dk.netarkivet.common.management
Class MBeanConnectorCreator

java.lang.Object
  extended by dk.netarkivet.common.management.MBeanConnectorCreator

public class MBeanConnectorCreator
extends java.lang.Object

Utility class that handles exposing the platform mbean server using rmi, and using specified ports and password files. See http://java.sun.com/j2se/1.5.0/docs/guide/jmx/tutorial/security.html TODO: This implementation is not robust and could be improved. TODO: Forinstance: - Singleton behaviour TODO: -Reuse of already created registry TODO: Usage of access rights (for readonly mbeans) (see reference above)


Field Summary
static boolean isExposed
           
 
Constructor Summary
MBeanConnectorCreator()
           
 
Method Summary
static void exposeJMXMBeanServer()
          Registers an RMI connector to the local mbean server in a private RMI registry, under the name "jmxrmi".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isExposed

public static boolean isExposed
Constructor Detail

MBeanConnectorCreator

public MBeanConnectorCreator()
Method Detail

exposeJMXMBeanServer

public static void exposeJMXMBeanServer()
Registers an RMI connector to the local mbean server in a private RMI registry, under the name "jmxrmi". The port for the registry is read from settings, and the RMI port used for exposing the connector is also read from settings. Access to the mbean server is restricted by the rules set in the password file, likewise read from settings.

Throws:
IOFailure - on trouble exposing the server.