Top Fields Constructors Methods
com.mchange.v2.c3p0

public final Class C3P0Registry

extends Object
Class Inheritance
Imports
java.util.*, com.mchange.v2.coalesce.*, com.mchange.v2.log.*, com.mchange.v2.c3p0.cfg.C3P0ConfigUtils, com.mchange.v2.c3p0.impl.*, .IdentityTokenized, java.sql.SQLException, com.mchange.v2.c3p0.subst.C3P0Substitutions, com.mchange.v2.sql.SqlUtils, com.mchange.v2.util.DoubleWeakHashMap, com.mchange.v2.c3p0.management.*

Field Summary

Modifier and TypeField and Description
private static CoalesceChecker
private static final Map<K, V>
private static final Map<K, V>
private static final Map<K, V>
private static final TaskRunnerFactory
private static Coalescer
pack-priv static final MLogger
private static ManagementCoordinator
private static final String
private static final String
pack-priv static boolean
private static Map<K, V>
private static HashSet<E>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static synchronized Set<E>
public static synchronized Set<E>
public static synchronized Set<E>
private static void
public static Map<K, V>
extensionsForToken(String pooledDataSourceIdentityToken)

private static synchronized Object
findTokenized(String identityToken)

public static synchronized Map<K, V>
public static ConnectionCustomizer
public static ConnectionTester
public static TaskRunnerFactory
public static synchronized int
public static synchronized int
public synchronized int
public static synchronized Set<E>
public static TaskRunnerFactory
private static void
private static boolean
public static synchronized void
public static void
public static synchronized PooledDataSource

Returns:

a PooledDataSource with the given dataSourceName, if at least one exists. null otherwise.
pooledDataSourceByName
(String dataSourceName)

Note

If multiple PooledDataSources in your JVM share the same dataSourceName, which of those multiple DataSources will be returned by this method is undefined!

public static synchronized Set<E>

Returns:

the set of all PooledDataSources sharing the given dataSourceName
pooledDataSourcesByName
(String dataSourceName)

private static ConnectionTester
public static synchronized IdentityTokenized
private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CCback to summary
private static CoalesceChecker CC
classNamesToConnectionCustomizersback to summary
private static final Map<K, V> classNamesToConnectionCustomizers
classNamesToConnectionTestersback to summary
private static final Map<K, V> classNamesToConnectionTesters
classNamesToTaskRunnerFactoriesback to summary
private static final Map<K, V> classNamesToTaskRunnerFactories
DEFAULT_TASK_RUNNER_FACTORYback to summary
private static final TaskRunnerFactory DEFAULT_TASK_RUNNER_FACTORY
idtCoalescerback to summary
private static Coalescer idtCoalescer
loggerback to summary
pack-priv static final MLogger logger
mcback to summary
private static ManagementCoordinator mc
MC_PARAMback to summary
private static final String MC_PARAM
OLD_SCHOOL_DEFAULT_CONNECTION_TESTER_CLASS_NAMEback to summary
private static final String OLD_SCHOOL_DEFAULT_CONNECTION_TESTER_CLASS_NAME
registry_mbean_registeredback to summary
pack-priv static boolean registry_mbean_registered
tokensToTokenizedback to summary
private static Map<K, V> tokensToTokenized
unclosedPooledDataSourcesback to summary
private static HashSet<E> unclosedPooledDataSources

Constructor Detail

C3P0Registryback to summary
public C3P0Registry()

Method Detail

allIdentityTokenizedback to summary
public static synchronized Set<E> allIdentityTokenized()
allIdentityTokensback to summary
public static synchronized Set<E> allIdentityTokens()
allPooledDataSourcesback to summary
public static synchronized Set<E> allPooledDataSources()
attemptRegisterRegistryMBeanback to summary
private static void attemptRegisterRegistryMBean()
extensionsForTokenback to summary
public static Map<K, V> extensionsForToken(String pooledDataSourceIdentityToken) throws NoSuchElementException, IllegalArgumentException
findTokenizedback to summary
private static synchronized Object findTokenized(String identityToken)
getConfigExtensionsForPooledDataSourceback to summary
public static synchronized Map<K, V> getConfigExtensionsForPooledDataSource(String identityToken) throws SQLException
getConnectionCustomizerback to summary
public static ConnectionCustomizer getConnectionCustomizer(String className) throws SQLException
getConnectionTesterback to summary
public static ConnectionTester getConnectionTester(String className)
getDefaultTaskRunnerFactoryback to summary
public static TaskRunnerFactory getDefaultTaskRunnerFactory()
getNumPooledDataSourcesback to summary
public static synchronized int getNumPooledDataSources()
getNumPoolsAllDataSourcesback to summary
public static synchronized int getNumPoolsAllDataSources() throws SQLException
getNumThreadsAllThreadPoolsback to summary
public synchronized int getNumThreadsAllThreadPools() throws SQLException
getPooledDataSourcesback to summary
public static synchronized Set<E> getPooledDataSources()
getTaskRunnerFactoryback to summary
public static TaskRunnerFactory getTaskRunnerFactory(String className)
incorporateback to summary
private static void incorporate(IdentityTokenized idt)
isIncorporatedback to summary
private static boolean isIncorporated(IdentityTokenized idt)
markClosedback to summary
public static synchronized void markClosed(PooledDataSource pds)
markConfigRefreshedback to summary
public static void markConfigRefreshed()
pooledDataSourceByNameback to summary
public static synchronized PooledDataSource pooledDataSourceByName(String dataSourceName)

Note

If multiple PooledDataSources in your JVM share the same dataSourceName, which of those multiple DataSources will be returned by this method is undefined!

Returns:PooledDataSource

a PooledDataSource with the given dataSourceName, if at least one exists. null otherwise.

pooledDataSourcesByNameback to summary
public static synchronized Set<E> pooledDataSourcesByName(String dataSourceName)
Returns:Set<E>

the set of all PooledDataSources sharing the given dataSourceName

recreateOldSchoolDefaultConnectionTesterback to summary
private static ConnectionTester recreateOldSchoolDefaultConnectionTester()
reregisterback to summary
public static synchronized IdentityTokenized reregister(IdentityTokenized idt)
resetConnectionTesterCacheback to summary
private static void resetConnectionTesterCache()