Class MySQLConnectionPoolProvider
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.configuration.provider.HierarchicalConfigProvider<T>
-
- edu.uiuc.ncsa.security.storage.sql.ConnectionPoolProvider<MySQLConnectionPool>
-
- edu.uiuc.ncsa.security.storage.sql.mysql.MySQLConnectionPoolProvider
-
- All Implemented Interfaces:
CfgEventListener
,EventListener
,javax.inject.Provider<MySQLConnectionPool>
public class MySQLConnectionPoolProvider extends ConnectionPoolProvider<MySQLConnectionPool>
Created by Jeff Gaynor
on 1/17/12 at 11:54 AM
-
-
Field Summary
-
Fields inherited from class edu.uiuc.ncsa.security.storage.sql.ConnectionPoolProvider
BOOT_PASSWORD, CONNECTION_CLEANUP_ENABLE, CONNECTION_CLEANUP_INTERVAL, CONNECTION_ENABLE_QUEUE, CONNECTION_IDLE_TIMEOUT, CONNECTION_MAX, CONNECTION_QUEUE_INTERVAL, database, DATABASE, DEFAULT_CLEANUP_ENABLE, DEFAULT_CLEANUP_INTERVAL, DEFAULT_IDLE_TIMEOUT, DEFAULT_MAX_CONNECTIONS, DEFAULT_QUEUE_INTERVAL, DERBY_CREATE_SCRIPT, DERBY_FS_DEFAULT_BOOT_PASSWORD, DERBY_FS_DEFAULT_PASSWORD, DERBY_FS_DEFAULT_SCHEMA, DERBY_FS_DEFAULT_USER, DERBY_STORE_TYPE, driver, DRIVER, host, HOST, PARAMETERS, PASSWORD, port, PORT, schema, SCHEMA, USE_SSL, USERNAME, useSSL
-
-
Constructor Summary
Constructors Constructor Description MySQLConnectionPoolProvider(SQLConnectionImpl sqlConnection)
MySQLConnectionPoolProvider(String database, String schema)
Another constructor, accepting the standard mysql defaults for driver, host and port.MySQLConnectionPoolProvider(String database, String schema, String host, int port, String driver, boolean useSSL)
Sets the defaults for this connection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkEvent(CfgEvent cfgEvent)
Checks that the event applies to this component.Object
componentFound(CfgEvent configurationEvent)
MySQLConnectionPool
get()
-
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.ConnectionPoolProvider
checkTime, checkValue, checkValue, checkValue, checkValue, checkValue, getDatabase, getDriver, getHost, getPort, getSchema, isUseSSL, setDatabase, setDriver, setHost, setPoolParameters, setPort, setSchema, setUseSSL
-
Methods inherited from class edu.uiuc.ncsa.security.core.configuration.provider.HierarchicalConfigProvider
addListener, fireComponentFound, getAttribute, getAttribute, getBooleanAttribute, getConfig, getConfigurationAt, getIntAttribute, getIntAttribute, getListeners, hasA, isA, removeListener, setConfig
-
-
-
-
Constructor Detail
-
MySQLConnectionPoolProvider
public MySQLConnectionPoolProvider(String database, String schema, String host, int port, String driver, boolean useSSL)
Sets the defaults for this connection.- Parameters:
database
-schema
-host
-port
-driver
-
-
MySQLConnectionPoolProvider
public MySQLConnectionPoolProvider(String database, String schema)
Another constructor, accepting the standard mysql defaults for driver, host and port.- Parameters:
database
-schema
-
-
MySQLConnectionPoolProvider
public MySQLConnectionPoolProvider(SQLConnectionImpl sqlConnection)
-
-
Method Detail
-
get
public MySQLConnectionPool get()
-
checkEvent
protected boolean checkEvent(CfgEvent cfgEvent)
Description copied from class:HierarchicalConfigProvider
Checks that the event applies to this component. The type is the component and the target is Normally you set the component key as a static field in the class (e.g. "mysql") and pass it along in the theCfgEventListener.componentFound(CfgEvent)
method. If checkEvent fails, do no more processing with the event.- Specified by:
checkEvent
in classHierarchicalConfigProvider<MySQLConnectionPool>
- Returns:
-
-