Class H2ConnectionPoolProvider
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.configuration.provider.HierarchicalConfigProvider<T>
-
- edu.uiuc.ncsa.security.storage.sql.ConnectionPoolProvider<ConnectionPool>
-
- edu.uiuc.ncsa.security.storage.sql.h2.H2ConnectionPoolProvider
-
- All Implemented Interfaces:
CfgEventListener
,EventListener
,javax.inject.Provider<ConnectionPool>
public class H2ConnectionPoolProvider extends ConnectionPoolProvider<ConnectionPool>
Created by Jeff Gaynor
on 5/2/12 at 1:46 PM
-
-
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 H2ConnectionPoolProvider(String database, String schema)
H2ConnectionPoolProvider(String database, String schema, String host, int port, String driver, boolean useSSL)
the default port is 8084 for localhost connections.
-
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)
ConnectionPool
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
-
H2ConnectionPoolProvider
public H2ConnectionPoolProvider(String database, String schema, String host, int port, String driver, boolean useSSL)
the default port is 8084 for localhost connections. Non-local-host connections should specify port 8085 (for a standard install) and use ssl.
-
-
Method Detail
-
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<ConnectionPool>
- Returns:
-
get
public ConnectionPool get()
-
-