A singleton for managing the connection pools available in the system.
More...
#include <ConnectionPoolManager.h>
A singleton for managing the connection pools available in the system.
- See also
- AbstractConnectionPool
Definition at line 53 of file ConnectionPoolManager.h.
te::da::ConnectionPoolManager::ConnectionPoolManager |
( |
| ) |
|
|
protected |
Singleton constructor is protected.
te::da::ConnectionPoolManager::~ConnectionPoolManager |
( |
| ) |
|
|
protected |
Singleton destructor is protected.
It adds the given pool to the list of monitored pools.
- Parameters
-
pool | The pool to be monitored. |
It returns a reference to the singleton instance.
- Returns
- A reference to the singleton instance.
bool te::da::ConnectionPoolManager::isInitialized |
( |
| ) |
const |
It returns true if the manager was already started.
- Returns
- True if the manager was already started and are monitoring the pools.
void te::da::ConnectionPoolManager::monitore |
( |
| ) |
|
This static method encapsulates the execution thread that monitores all the pools.
- Note
- This method will be excuted every x seconds.
It removes (un-register) the pool from the monitoring list.
- Parameters
-
pool | The pool to be removed from the monitoring list. |
void te::da::ConnectionPoolManager::start |
( |
| ) |
|
It starts a new thread of execution that will monitore all the connection pools.
void te::da::ConnectionPoolManager::stop |
( |
| ) |
|
It stops the connection pools monitoring thread.
bool te::da::ConnectionPoolManager::m_initialized |
|
private |
boost::mutex te::da::ConnectionPoolManager::m_mtx |
|
private |
boost::thread te::da::ConnectionPoolManager::m_thread |
|
private |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/dataaccess/datasource/ConnectionPoolManager.h