Skip to main content

Source code revision

svn

summary: Issue: 8864,9310 Added the dynamic reconfig functionality for monitoring-enabled flag, module-monitoring-levels and container-monitoring items.
revision: 31207
author: abbagani
date: 2009-09-08 23:31:32 UTC (5 years)
message: Issue: 8864,9310
Added the dynamic reconfig functionality for monitoring-enabled flag, module-monitoring-levels and container-monitoring items.
As part of the dynamic reconfig change I am doing the following
1) MonitoringBootstrap changes
added the impl for reconfig changes for module-monitoring-levels (in MonitoringBootstrap)
added the impl for reconfig changes for mbean-enabled flag (registering/unregistering gmbal objects)
added the impl for reconfig changes for monitoring-enabled flag (updating the statsproviders accordingly)

2) Refactoring of StatsProviderManagerDelegateImpl, the code looks much simpler and compact now. Doing a variety of scenarios here
handling the changes for config-level turning from on to off
handling the changes for config-level turning from off to on
making sure we honor the monitoring enabled flag (bringing it up to date when its turned from off to on and viceversa)
making sure we honor the mbean-enabled flag (bringing it upto date when its turned from off to on and viceversa)
Updating of tree on need basis, removed the overhead of registering the stats to flashlight and creation of tree, when the config is in disabled state
3) Refactoring of StatsProviderRegistry and StatsProviderRegistryElement
4) fixed a major bug w.r.t to deadlock. Had to remove the TelemetryService.java (old code still hanging around).

Change Path Actions
M trunk/v3/admin/monitor/src/main/java/org/glassfish/admin/monitor/MonitoringBootstrap.java
M trunk/v3/admin/monitor/src/main/java/org/glassfish/admin/monitor/StatsProviderManagerDelegateImpl.java
M trunk/v3/admin/monitor/src/main/java/org/glassfish/admin/monitor/StatsProviderRegistry.java
M trunk/v3/core/kernel/src/main/java/org/glassfish/kernel/admin/monitor/TelemetryService.java
M trunk/v3/web/admin/src/main/java/org/glassfish/web/admin/monitor/HttpServiceStatsProviderBootstrap.java
M trunk/v3/web/admin/src/main/java/org/glassfish/web/admin/monitor/WebStatsProviderBootstrap.java
 
 
Close
loading
Please Confirm
Close