Package overit.geocall.sql
Class DBPools
java.lang.Object
overit.geocall.sql.DBPools
This class implements the object that contains the
HashMap of the ConnectionPool of the application.
It exposes the methods to set the pools and extract them, in addition to the iterator on the keys that
allows to iterate over the pool names.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()static DBViewThis method return the DBView that contains all the attributes of each pool in the pool list.
The attributes of each pool that are insert in the DBView are: NAME, DRIVER, URL, USER, PASSWORD, NUMBER, PARAMETERS.protected static booleangiveUp(int wait, long start) static DBPoolsinstance()Returns anIteratorover the key fields (the names)protected voidremovePool(ConnectionPool pool)
-
Field Details
-
map
-
-
Constructor Details
-
DBPools
public DBPools()
-
-
Method Details
-
instance
-
nameIterator
Returns anIteratorover the key fields (the names)- Returns:
- The Iterator over the collection of connection pools
-
getPool
-
removePool
-
dispose
public void dispose() -
giveUp
protected static boolean giveUp(int wait, long start) -
getDBView
This method return the DBView that contains all the attributes of each pool in the pool list.
The attributes of each pool that are insert in the DBView are: NAME, DRIVER, URL, USER, PASSWORD, NUMBER, PARAMETERS.- Returns:
- The DBView that contains all the information of each pool in the pool list.
-