public class NonPooledConnectionProvider extends Object implements GcJdbcConnectionProvider
Modifier and Type | Class and Description |
---|---|
static class |
NonPooledConnectionProvider.NonPooledConnectionBean
bean to hold connection
|
Constructor and Description |
---|
NonPooledConnectionProvider() |
Modifier and Type | Method and Description |
---|---|
GcJdbcConnectionBean |
connectionBean()
get a connection (dont close this when done, just call "doneWithConnection()"
|
void |
init(Properties properties,
String sourceId,
String driver,
Integer maxActive,
int defaultMaxActive,
Integer maxIdle,
int defaultMaxIdle,
Integer maxWaitSeconds,
int defaultMaxWaitSeconds,
String theDbUrl,
String theDbUser,
String theDbPassword,
Boolean readOnly,
boolean readOnlyDefault,
String jdbcConfigId)
init the pool
|
boolean |
requiresJdbcConfigInSourcesXml()
if the provider requires jdbc data in the subject.properties
|
public GcJdbcConnectionBean connectionBean()
GcJdbcConnectionProvider
connectionBean
in interface GcJdbcConnectionProvider
edu.internet2.middleware.subject.provider.JdbcConnectionProvider#connectionBean()
public void init(Properties properties, String sourceId, String driver, Integer maxActive, int defaultMaxActive, Integer maxIdle, int defaultMaxIdle, Integer maxWaitSeconds, int defaultMaxWaitSeconds, String theDbUrl, String theDbUser, String theDbPassword, Boolean readOnly, boolean readOnlyDefault, String jdbcConfigId)
GcJdbcConnectionProvider
init
in interface GcJdbcConnectionProvider
sourceId
- mainly for loggingdriver
- drivermaxActive
- max active connection if pooldefaultMaxActive
- if max active is needed, and blank, then use thismaxIdle
- max idle connections if pooldefaultMaxIdle
- if max is needed, and blank, then use thismaxWaitSeconds
- max wait if pool empty in seconds. -1 means long timedefaultMaxWaitSeconds
- if max wait is needed, and blank, then use this, -1 mean long timetheDbUrl
- jdbc url of the databasetheDbUser
- user to login to the databasetheDbPassword
- password for the database (unencrypted)readOnly
- if conn should be readonlyreadOnlyDefault
- default if not specified and neededjdbcConfigId
- if blank or "grouper" then its the grouper database, otherwise its the configId
in the grouper-loader.properties database entryedu.internet2.middleware.subject.provider.JdbcConnectionProvider#init(Properties, java.lang.String, java.lang.String, java.lang.Integer, int, java.lang.Integer, int, java.lang.Integer, int, java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean, boolean)
public boolean requiresJdbcConfigInSourcesXml()
GcJdbcConnectionProvider
requiresJdbcConfigInSourcesXml
in interface GcJdbcConnectionProvider
edu.internet2.middleware.subject.provider.JdbcConnectionProvider#requiresJdbcConfigInSourcesXml()
Copyright © 2016 Internet2. All rights reserved.