public class LuteceConnectionService extends Object implements ConnectionService
INFO_NOT_AVAILABLE
Constructor and Description |
---|
LuteceConnectionService() |
Modifier and Type | Method and Description |
---|---|
void |
freeConnection(Connection conn)
Free the connection
|
Connection |
getConnection()
Get a connection
|
ConnectionPool |
getConnectionPool()
Returns the connection pool
|
int |
getCurrentConnections()
Gets the number of opened connections
|
DataSource |
getDataSource()
Get datasource
|
org.apache.log4j.Logger |
getLogger()
Gets the pool logger
|
int |
getMaxConnections()
Gets the max connections
|
String |
getPoolName()
Returns the pool name
|
String |
getPoolProvider()
Gets the pool manager provider
|
void |
init(Map<String,String> htParamsConnectionPool)
Initializes the connection pool
|
void |
release()
Release the pool
|
void |
setLogger(org.apache.log4j.Logger logger)
Sets the logger
|
void |
setPoolName(String strPoolName)
Sets the pool name
|
public 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 init(Map<String,String> htParamsConnectionPool)
init
in interface ConnectionService
htParamsConnectionPool
- Pool parameterspublic Connection getConnection()
getConnection
in interface ConnectionService
public void freeConnection(Connection conn)
freeConnection
in interface ConnectionService
conn
- The connection to releasepublic void release()
release
in interface ConnectionService
public ConnectionPool getConnectionPool()
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
Copyright © 2020 City of Paris. All rights reserved.