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.ConnectionPoolProviderBOOT_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 SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckEvent(CfgEvent cfgEvent)Checks that the event applies to this component.ObjectcomponentFound(CfgEvent configurationEvent)MySQLConnectionPoolget()- 
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.ConnectionPoolProvidercheckTime, 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.HierarchicalConfigProvideraddListener, fireComponentFound, getAttribute, getAttribute, getBooleanAttribute, getCFNode, getConfig, getConfigurationAt, getIntAttribute, getIntAttribute, getListeners, hasA, hasCFNode, isA, removeListener, setCFNode, setConfig
 
- 
 
- 
- 
- 
Constructor Detail- 
MySQLConnectionPoolProviderpublic 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-
 
 - 
MySQLConnectionPoolProviderpublic MySQLConnectionPoolProvider(String database, String schema) Another constructor, accepting the standard mysql defaults for driver, host and port.- Parameters:
- database-
- schema-
 
 - 
MySQLConnectionPoolProviderpublic MySQLConnectionPoolProvider(SQLConnectionImpl sqlConnection) 
 
- 
 - 
Method Detail- 
getpublic MySQLConnectionPool get() 
 - 
checkEventprotected boolean checkEvent(CfgEvent cfgEvent) Description copied from class:HierarchicalConfigProviderChecks 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:
- checkEventin class- HierarchicalConfigProvider<MySQLConnectionPool>
- Returns:
 
 
- 
 
-