|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.util.pool.service.TomcatConnectionService
public class TomcatConnectionService
This class provides a ConnectionService based on Tomcat
Field Summary |
---|
Fields inherited from interface fr.paris.lutece.util.pool.service.ConnectionService |
---|
INFO_NOT_AVAILABLE |
Constructor Summary | |
---|---|
TomcatConnectionService()
|
Method Summary | |
---|---|
void |
freeConnection(Connection conn)
Release the connection |
Connection |
getConnection()
Get a connection |
int |
getCurrentConnections()
Gets the number of opened connections |
DataSource |
getDataSource()
Get datasource |
org.apache.log4j.Logger |
getLogger()
Gets the logger |
int |
getMaxConnections()
Gets the max connections |
String |
getPoolName()
Gets the pool name |
String |
getPoolProvider()
Gets the pool manager provider |
void |
init(Hashtable<String,String> htParamsConnectionPool)
Initialize pool parameters |
void |
release()
Free all connections |
void |
setLogger(org.apache.log4j.Logger logger)
Sets the logger |
void |
setPoolName(String strPoolName)
Define the pool name |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TomcatConnectionService()
Method Detail |
---|
public Connection getConnection()
getConnection
in interface ConnectionService
public void freeConnection(Connection conn)
freeConnection
in interface ConnectionService
conn
- The connection to releasepublic void init(Hashtable<String,String> htParamsConnectionPool)
init
in interface ConnectionService
htParamsConnectionPool
- Parameterspublic void setPoolName(String strPoolName)
setPoolName
in interface ConnectionService
strPoolName
- The pool namepublic String getPoolName()
getPoolName
in interface ConnectionService
public void setLogger(org.apache.log4j.Logger logger)
setLogger
in interface ConnectionService
logger
- The loggerpublic org.apache.log4j.Logger getLogger()
getLogger
in interface ConnectionService
public void release()
release
in interface ConnectionService
public int getCurrentConnections()
getCurrentConnections
in interface ConnectionService
public int getMaxConnections()
getMaxConnections
in interface ConnectionService
public String getPoolProvider()
getPoolProvider
in interface ConnectionService
public DataSource getDataSource()
getDataSource
in interface ConnectionService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |