org.gcube.data.spd.obisplugin.pool
Class PluginSessionPool
java.lang.Object
org.gcube.data.spd.obisplugin.pool.ObjectPool<PluginSession>
org.gcube.data.spd.obisplugin.pool.PluginSessionPool
public class PluginSessionPool
- extends ObjectPool<PluginSession>
- Author:
- "Federico De Faveri defaveri@isti.cnr.it"
logger
protected org.apache.log4j.Logger logger
databaseCredential
protected DatabaseCredential databaseCredential
PluginSessionPool
public PluginSessionPool(DatabaseCredential databaseCredential)
setDatabaseCredential
public void setDatabaseCredential(DatabaseCredential databaseCredential)
- Parameters:
databaseCredential - the databaseCredential to set
create
protected PluginSession create()
-
- Specified by:
create in class ObjectPool<PluginSession>
createConnection
protected Connection createConnection()
throws SQLException
- Throws:
SQLException
validate
protected boolean validate(PluginSession session)
-
- Specified by:
validate in class ObjectPool<PluginSession>
expire
protected void expire(PluginSession session)
-
- Specified by:
expire in class ObjectPool<PluginSession>
Copyright © 2013. All Rights Reserved.