org.jboss.jms.server.connectormanager
Class SimpleConnectorManager
java.lang.Object
org.jboss.jms.server.connectormanager.SimpleConnectorManager
- All Implemented Interfaces:
- ConnectorManager, MessagingComponent
public class SimpleConnectorManager
- extends java.lang.Object
- implements ConnectorManager
A SimpleConnectorManager.
The only function of these class is to add ConnectionListeners to Connectors
as connection factories are deployed.
Multiple connection factories can use the same connector and we don't want to install the connection
listener more than once, so we need to reference count.
If we can find out somehow if a connector already has a connection listener registered we can
get rid of this class, but currently remoting does not provide this functionality
- Version:
- $Revision: 1935 $
$Id: SimpleConnectorManager.java 1935 2007-01-09 23:29:20Z clebert.suconic@jboss.com $
- Author:
- Tim Fox
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connectors
protected java.util.Map connectors
SimpleConnectorManager
public SimpleConnectorManager()
unregisterConnector
public void unregisterConnector(java.lang.String name)
throws java.lang.Exception
- Specified by:
unregisterConnector
in interface ConnectorManager
- Throws:
java.lang.Exception
registerConnector
public int registerConnector(java.lang.String name)
throws java.lang.Exception
- Specified by:
registerConnector
in interface ConnectorManager
- Throws:
java.lang.Exception
containsConnector
public boolean containsConnector(java.lang.String connectorName)
getCount
public int getCount(java.lang.String connectorName)
start
public void start()
throws java.lang.Exception
- Specified by:
start
in interface MessagingComponent
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.Exception
- Specified by:
stop
in interface MessagingComponent
- Throws:
java.lang.Exception
Copyright © 2006 JBoss Inc. All Rights Reserved.