org.jmx4odp.j4oNet
Class InitialJsRegistry

java.lang.Object
  extended by org.jmx4odp.j4oNet.InitialJsRegistry

public class InitialJsRegistry
extends java.lang.Object

This file reads the InitialJsRegistry.properties file to return a proxy to the established JsRegistryManager. If a MBeanServer is passed in, it will try to grab an instance from the local MBeanServer, else it will create a remote MBeanServer connection.

Author:
Lucas McGregor

Constructor Summary
InitialJsRegistry()
          Creates new InitialRegistry
 
Method Summary
 JmxServiceObj getInitialJmxServiceObj()
          This will return a JSO that contains the information in the InitialJsRegistry.properties file.
 JsRegistryManagerMBean getInitialRegistryManager()
          This is the same as calling getInitialRegistryManager((MBeanServer) null)
 JsRegistryManagerMBean getInitialRegistryManager(JmxServiceObj jso)
          The information in the JSO will override the information in the InitialJsRegistry.properties file.
 JsRegistryManagerMBean getInitialRegistryManager(javax.management.MBeanServer mbs)
          If the MBeanServer is null, it will use the MBeanServerManager to try to find the one it started in the JVM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitialJsRegistry

public InitialJsRegistry()
Creates new InitialRegistry

Method Detail

getInitialRegistryManager

public JsRegistryManagerMBean getInitialRegistryManager()
                                                 throws java.lang.Exception
This is the same as calling getInitialRegistryManager((MBeanServer) null)

Throws:
java.lang.Exception

getInitialRegistryManager

public JsRegistryManagerMBean getInitialRegistryManager(javax.management.MBeanServer mbs)
                                                 throws java.lang.Exception
If the MBeanServer is null, it will use the MBeanServerManager to try to find the one it started in the JVM. If this is null, it will use the specifications in the InitialJsRegistry.properties file to connect to one remotely.

Throws:
java.lang.Exception

getInitialRegistryManager

public JsRegistryManagerMBean getInitialRegistryManager(JmxServiceObj jso)
                                                 throws java.lang.Exception
The information in the JSO will override the information in the InitialJsRegistry.properties file. Using the JSO, this will return a proxy to the JsRegistryManager running on that aganet.

Throws:
java.lang.Exception

getInitialJmxServiceObj

public JmxServiceObj getInitialJmxServiceObj()
                                      throws java.lang.Exception
This will return a JSO that contains the information in the InitialJsRegistry.properties file.

Throws:
java.lang.Exception