public class DbPoolingProfileLoggerUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
getC3P0sPoolingData(DataSource dataSource,
String caller)
Logs the pooling data from the given DataSource that implements the
PooledDataSource interface. |
static void |
getDataSourcePoolData(String caller)
Logs the pooling data from the MBean, registered against the
MBeanServer, that follows the pattern
determined by POOLING_DATA_LOGGER_MBEAN_PATTERN system property. |
static void |
getXAPoolData(DataSource dataSource,
String caller)
Logs the pooling data from the given DataSource that implements the
XADataSource interface. |
public static void getC3P0sPoolingData(DataSource dataSource, String caller)
PooledDataSource interface.dataSource - DataSource object from where pooling data is going to be gathered.caller - the name of the method that logs the pooling data.SQLException - when trying to call methods from the PooledDataSource interface.public static void getXAPoolData(DataSource dataSource, String caller)
XADataSource interface.dataSource - DataSource object from where pooling data is going to be gathered.caller - the name of the method that logs the pooling data.IllegalAccessException - when the requested field can not be accessed.NoSuchMethodException - when the requested method does not exists.InvocationTargetException - when the request field does not exists.NoSuchFieldException - when the requested field does not exists.public static void getDataSourcePoolData(String caller)
MBeanServer, that follows the pattern
determined by POOLING_DATA_LOGGER_MBEAN_PATTERN system property.caller - the name of the method that logs the pooling data.Copyright © 2025. All rights reserved.