|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jrun.jms.core.server.JmsServerConnectionManager
The connection manager is responsible for managing all connections to the JmsServer. The connection manager is a singleton (at this point anyway) that is accessible through the instance class method. It is also responsible for holding a list of connections.
A client uses a client identifier to create a connection and a connection type to identify the connection type- queue or topic.
TODO: Look at leasing connections and timing them out.
org.exolab.jms.server.JmsConnection| Method Summary | |
void |
closeConnection(java.lang.String id)
Close the connection associated with a particular client identity. |
void |
collectGarbage()
Perform any garbage collection on this resource. |
JmsServerConnection |
createConnection(java.lang.String id,
java.lang.String user)
Create a connection with the specified client id. |
JmsServerConnection |
getConnection(java.lang.String id)
Return the connection associated with a particular client identity. |
java.util.Enumeration |
getConnections()
Return an Enumeration of all the connections currently registered with the connection manager |
int |
getGarbageCollectionEvent()
Returns garbage collection event type |
static JmsServerConnectionManager |
instance()
The static method returns the singleton instance of the JmsConnectionManager. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static JmsServerConnectionManager instance()
public JmsServerConnection createConnection(java.lang.String id,
java.lang.String user)
throws FailedToCreateConnectionException
If a connection cannot be established then throw the FailedToCreateConn- ectionException exception.
id - client identityuser - user idFailedToCreateConnectionException - public java.util.Enumeration getConnections()
public JmsServerConnection getConnection(java.lang.String id)
id - identity of the clientpublic void closeConnection(java.lang.String id)
id - identity of the clientpublic void collectGarbage()
collectGarbage in interface GarbageCollectablepublic int getGarbageCollectionEvent()
GarbageCollectablegetGarbageCollectionEvent in interface GarbageCollectable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||