|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.server.ServerConnectionManagerImpl
The ServerConnectionManagerImpl
is responsible for managing all
connections to the server.
ServerConnectionImpl
Constructor Summary | |
ServerConnectionManagerImpl(org.exolab.jms.net.connector.Authenticator authenticator,
MessageManager messages,
DatabaseService database,
Scheduler scheduler)
Construct a new ServerConnectionManagerImpl . |
Method Summary | |
void |
addClientID(java.lang.String clientID)
Register a client identifer. |
void |
closed(ServerConnectionImpl connection)
Notify closure of a connection. |
ServerConnection |
createConnection(java.lang.String clientID,
java.lang.String userName,
java.lang.String password)
Creates a connection with the specified user identity. |
ServerConnectionImpl |
getConnection(long connectionId)
Returns the connection associated with a particular connection identifier. |
void |
setConsumerManager(ConsumerManager consumers)
Sets the consumer manager. |
void |
setResourceManager(ResourceManager resources)
Sets the resource manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServerConnectionManagerImpl(org.exolab.jms.net.connector.Authenticator authenticator, MessageManager messages, DatabaseService database, Scheduler scheduler)
ServerConnectionManagerImpl
.authenticator
- the authenticator to verify users withMethod Detail |
public void setConsumerManager(ConsumerManager consumers)
consumers
- the consumer managerpublic void setResourceManager(ResourceManager resources)
resources
- the resource manager.public ServerConnection createConnection(java.lang.String clientID, java.lang.String userName, java.lang.String password) throws javax.jms.JMSException
Connection.start
method is explicitly called.
If clientID
is specified, it indicates the pre-configured
client identifier associated with the client ConnectionFactory
object.createConnection
in interface ServerConnectionFactory
clientID
- the pre-configured client identifier. May be
null
null
.userName
- the caller's user namepassword
- the caller's passwordjavax.jms.InvalidClientIDException
- if the JMS client specifies an invalid
or duplicate client ID.javax.jms.JMSException
- if the JMS provider fails to create the
connection due to some internal error.javax.jms.JMSSecurityException
- if client authentication fails due to an
invalid user name or password.public ServerConnectionImpl getConnection(long connectionId)
getConnection
in interface ServerConnectionManager
connectionId
- the connection identifierconnectionId
, or
null
if none existspublic void closed(ServerConnectionImpl connection)
connection
- the connection that has been closedpublic void addClientID(java.lang.String clientID) throws javax.jms.InvalidClientIDException
clientID
- the client identifier. If null
Throws:javax.jms.InvalidClientIDException
- if the identifier is a duplicate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |