|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.management.configuration.QpidDatasource
public final class QpidDatasource
Qpid datasource. Basically it is a connection pool manager used for optimizing broker connections usage.
Nested Class Summary | |
---|---|
(package private) class |
QpidDatasource.PooledConnection
A connection decorator used for adding pool interaction behaviour to an existing connection. |
(package private) class |
QpidDatasource.QpidConnectionFactory
This is the connection factory, that is, the factory used to manage the lifecycle (create, validate & destroy) of the broker connection(s). |
Method Summary | |
---|---|
(package private) void |
addConnectionPool(UUID brokerId,
BrokerConnectionData connectionData)
Adds a connection pool to this datasource. |
org.apache.qpid.transport.Connection |
getConnection(UUID brokerId)
Gets an available connection from the pool of the given broker. |
static QpidDatasource |
getInstance()
Entry point method for retrieving the singleton instance of this datasource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public org.apache.qpid.transport.Connection getConnection(UUID brokerId) throws Exception
brokerId
- the broker identifier.
Exception
public static QpidDatasource getInstance()
void addConnectionPool(UUID brokerId, BrokerConnectionData connectionData) throws Exception
brokerId
- the broker identifier that will be associated with the new connection pool.connectionData
- the broker connection data.
Exception
- when the pool cannot be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |