xmlBlaster 2.1.0 API

org.xmlBlaster.client.jmx
Class ConnectorFactory

java.lang.Object
  extended by org.xmlBlaster.client.jmx.ConnectorFactory

public class ConnectorFactory
extends java.lang.Object


Field Summary
private static Global applicationGlobal
           
private  java.util.TreeMap childGlobals
           
private  Global global
           
private static java.util.logging.Logger log
           
private  java.util.TreeMap servers
           
private static ConnectorFactory singletonFactory
           
private static java.lang.Object syncObject
           
 
Constructor Summary
private ConnectorFactory(Global global)
           
 
Method Summary
private  AsyncMBeanServer addAsyncConnector(java.lang.String transport, java.lang.String serverName)
          Creates an instance of an AsyncMBeanServer.
private  AsyncMBeanServer getExistingAsyncConnector(java.lang.String serverName)
          returns the async mbean server within this child global.
static ConnectorFactory getInstance(Global global)
           
 AsyncMBeanServer getMBeanServer(java.lang.String serverName)
          Gets the async mbean server specified with the given name.
 java.lang.String[] getMBeanServerList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singletonFactory

private static volatile ConnectorFactory singletonFactory

applicationGlobal

private static Global applicationGlobal

syncObject

private static java.lang.Object syncObject

global

private Global global

log

private static java.util.logging.Logger log

childGlobals

private java.util.TreeMap childGlobals

servers

private java.util.TreeMap servers
Constructor Detail

ConnectorFactory

private ConnectorFactory(Global global)
Method Detail

getInstance

public static ConnectorFactory getInstance(Global global)

addAsyncConnector

private AsyncMBeanServer addAsyncConnector(java.lang.String transport,
                                           java.lang.String serverName)
                                    throws ConnectorException
Creates an instance of an AsyncMBeanServer.

Parameters:
transport - the string identifying the communication type. Currently only xmlBlaster is supported.
serverName - the name of the server to create. If null is passed, '127.0.0.1' is assumed.
Throws:
ConnectorException

getExistingAsyncConnector

private AsyncMBeanServer getExistingAsyncConnector(java.lang.String serverName)
returns the async mbean server within this child global. It returns null if no one has been added yet.


getMBeanServer

public AsyncMBeanServer getMBeanServer(java.lang.String serverName)
                                throws ConnectorException
Gets the async mbean server specified with the given name.

Parameters:
global - is the parent global, i.e. the global configured on application start.
Throws:
ConnectorException

getMBeanServerList

public java.lang.String[] getMBeanServerList()

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.