| 限定符和类型 | 方法和说明 |
|---|---|
static void |
ProxoolFacade.addConfigurationListener(String alias,
ConfigurationListenerIF configurationListener)
Adds a listener that gets called everytime the configuration changes.
|
static void |
ProxoolFacade.addConnectionListener(String alias,
ConnectionListenerIF connectionListener)
Add a listener that monitors each time a connection is made or destroyed.
|
static void |
ProxoolFacade.addStateListener(String alias,
StateListenerIF stateListener)
Add a listener that monitors the change of state of the pool (quiet, busy, overloaded, or down)
|
static void |
ProxoolFacade.addStatisticsListener(String alias,
StatisticsListenerIF statisticsListener)
Add a listener that receives statistics as they are produced
|
protected ProxyConnection |
Prototyper.buildConnection(int status,
String creator)
Build a new connection
|
protected static void |
HouseKeeperController.cancel(String alias)
cancel a house keeper for a pool.
|
static String |
ProxoolFacade.getAlias(Connection connection)
Get the alias for the connection pool that served a connection
|
protected static String |
ProxoolFacade.getAlias(String url)
Extracts the pool alias from the url:
proxool.alias:driver:url -> alias
proxool.alias -> alias
|
static Collection |
ProxoolFacade.getConnectionInfos(String alias)
已过时。
use
snapshot instead. |
static ConnectionPoolDefinitionIF |
ProxoolFacade.getConnectionPoolDefinition(String alias)
Get the definition of a pool.
|
static ConnectionPoolStatisticsIF |
ProxoolFacade.getConnectionPoolStatistics(String alias)
|
static String |
ProxoolFacade.getConnectionPoolStatisticsDump(String alias)
|
static Connection |
ProxoolFacade.getDelegateConnection(Connection connection)
已过时。
Just cast the connection that you are given into the driver specific one.
|
static Statement |
ProxoolFacade.getDelegateStatement(Statement statement)
已过时。
Just cast the statement that you are given into the driver specific one.
|
static long |
ProxoolFacade.getId(Connection connection)
Get the connection ID for a connection
|
static SnapshotIF |
ProxoolFacade.getSnapshot(String alias)
Calls
getSnapshot
using false for the detail parameter. |
static SnapshotIF |
ProxoolFacade.getSnapshot(String alias,
boolean detail)
Gives a snapshot of what the pool is doing
|
static StatisticsIF[] |
ProxoolFacade.getStatistics(String alias)
Get all the lastest performance statistics for this pool
|
static StatisticsIF |
ProxoolFacade.getStatistics(String alias,
String token)
Get a particular set of performance statistics for this pool
|
static void |
ProxoolFacade.killAllConnections(String alias)
已过时。
use
alternative
to provide better auditing in log |
static void |
ProxoolFacade.killAllConnections(String alias,
boolean merciful)
已过时。
use
alternative
to provide better auditing in log |
static void |
ProxoolFacade.killAllConnections(String alias,
String reason)
Like
ProxoolFacade.killAllConnections(java.lang.String, boolean) but defaults to merciful. |
static void |
ProxoolFacade.killAllConnections(String alias,
String reason,
boolean merciful)
Kill all connections in a pool.
|
static boolean |
ProxoolFacade.killConnecton(Connection connection,
boolean merciful)
Kill a single connection
|
static boolean |
ProxoolFacade.killConnecton(String alias,
long id,
boolean merciful)
Kill a single connection
|
static void |
ProxoolFacade.redefineConnectionPool(String url,
Properties info)
Redefine the behaviour of the pool.
|
protected static void |
ProxoolFacade.registerConnectionPool(org.logicalcobwebs.proxool.ConnectionPoolDefinition connectionPoolDefinition) |
static void |
ProxoolFacade.registerConnectionPool(String url)
With no configurator or properties (using default values)
|
static String |
ProxoolFacade.registerConnectionPool(String url,
Properties info)
Build a ConnectionPool based on this definition and then start it.
|
protected static String |
ProxoolFacade.registerConnectionPool(String url,
Properties info,
boolean explicitRegister)
Build a ConnectionPool based on this definition and then start it.
|
static boolean |
ProxoolFacade.removeConfigurationListener(String alias,
ConfigurationListenerIF configurationListener)
Remove a listener that gets called everytime the configuration changes.
|
static boolean |
ProxoolFacade.removeConnectionListener(String alias,
ConnectionListenerIF connectionListener)
Remove a listener that monitors each time a connection is made or destroyed.
|
static void |
ProxoolFacade.removeConnectionPool(String alias)
Like
ProxoolFacade.removeConnectionPool(java.lang.String, int) but uses no delay. |
static void |
ProxoolFacade.removeConnectionPool(String alias,
int delay)
Remove a connection pool.
|
static boolean |
ProxoolFacade.removeStateListener(String alias,
StateListenerIF stateListener)
Remove a listener that monitors the change of state of the pool (quiet, busy, overloaded, or down)
|
static void |
ProxoolFacade.setConfigurationListener(String alias,
ConfigurationListenerIF configurationListener)
已过时。
|
static void |
ProxoolFacade.setConnectionListener(String alias,
ConnectionListenerIF connectionListener)
已过时。
|
static void |
ProxoolFacade.setStateListener(String alias,
StateListenerIF stateListener)
已过时。
|
static void |
ProxoolFacade.updateConnectionPool(String url,
Properties info)
Update the behaviour of the pool.
|
| 构造器和说明 |
|---|
Admin(ConnectionPoolDefinitionIF definition) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
ProxoolJMXHelper.registerPool(String alias,
Properties poolPropeties)
Create and register a
ConnectionPoolMBean to the given agents. |
| 构造器和说明 |
|---|
ConnectionPoolMBean(String alias,
Properties poolProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
ProxoolJNDIHelper.registerDatasource(String alias,
Properties jndiProperties)
Create a
ProxoolDataSource with the given alias
and bind it to JNDI using the given jndi properties. |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
JAXPConfigurator.configure(InputSource inputSource,
boolean validate)
Configure Proxool with xml from the given InputSource.
|
static void |
PropertyConfigurator.configure(Properties properties)
Configure proxool with the given properties.
|
static void |
JAXPConfigurator.configure(Reader reader,
boolean validate)
Configure Proxool with xml from the given reader.
|
static void |
PropertyConfigurator.configure(String filename)
Configure proxool with the given properties file.
|
static void |
JAXPConfigurator.configure(String xmlFileName,
boolean validate)
Configure Proxool with xml from the given file.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Method |
InvokerFacade.getConcreteMethod(Class concreteClass,
Method injectableMethod)
Returns the method in the concrete class with an indentical signature to that passed
|
protected Method |
MethodMapper.getConcreteMethod(Method injectableMethod)
Returns the method in the concrete class with an indentical signature to that passed
as a parameter
|
Copyright © 2024. All rights reserved.