Skip to main content

Source code revision

svn

summary: Adding monitoring support for JDBC. Changes include the following:
revision: 25672
author: sm157516
date: 2009-03-26 06:46:21 UTC (5 years)
message: Adding monitoring support for JDBC. Changes include the following:

- Added support in TelemetryService for a monitoring level change from OFF to HIGH
- Added utility methods in Counter and CounterImpl for increment(long delta);
- PoolLifeCycle interface provides support for implementing poolcreated and pooldestroyed type of events.
- Added a toString() in PoolLifeCycleListener interface to provide support for displaying monitoring information in server.log based on the level.
- Added JDBC pool probe providers that exposes the statistic objects ex: numconncreated
- pom.xml of connectors-runtime includes the monitoring and flashlight module dependencies.
- Support for multiple listeners to hook on to the PoolLifeCycle and PoolLifeCycleListener interfaces. There are respective r
egistries that store the information about the listeners and these are called whenever there is an event from ConnectionPool.
java. examples of some listeners are monitoring, self management etc. They can provide their own implementations for poolCrea
ted() or poolDestroyed() events.
- JDBCPoolTelemetry implements various events related to jdbc pool monitoring and provides objects to the calling modules that retrieve monitoring information.
- Bootstrap operations of telemetry objects are done in JDBCPoolTelemteryBootstrap.

Reviewed by :
Jagadish Ramu
Prashanth Abbagani

Tests Run:
JDBC devtests
unit tests on monitoring level changes, monitoring values observed.

Change Path Actions
M trunk/v3/admin/monitor/src/main/java/org/glassfish/flashlight/statistics/Counter.java
M trunk/v3/admin/monitor/src/main/java/org/glassfish/flashlight/statistics/impl/CounterImpl.java
M trunk/v3/connectors/connectors-runtime/pom.xml
M trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/connectors/ConnectorRuntime.java
A trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/listener/PoolLifeCycle.java
M trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/listener/PoolLifeCycleListener.java
M trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/AssocWithThreadResourcePool.java
M trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/ConnectionLeakDetector.java
M trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/ConnectionPool.java
A trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/JdbcPoolEmitterImpl.java
A trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/PoolLifeCycleListenerRegistry.java
A trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/PoolLifeCycleRegistry.java
M trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/PoolManager.java
M trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/PoolManagerImpl.java
M trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/UnpooledResource.java
A trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/monitor
A trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/monitor/ConnectionPoolProbeProviderUtil.java
A trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/monitor/JdbcConnPoolProbeProvider.java
A trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/monitor/telemetry
A trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/monitor/telemetry/JDBCPoolTelemetry.java
A trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/monitor/telemetry/JDBCPoolTelemetryBootstrap.java
M trunk/v3/core/kernel/src/main/java/org/glassfish/kernel/admin/monitor/TelemetryService.java
 
 
Close
loading
Please Confirm
Close