Branch: refs/heads/release/jon3.2.x Home: https://github.com/rhq-project/rhq Commit: 4929d1397d7bd7b2753b52ebc3988f7e87a75efe https://github.com/rhq-project/rhq/commit/4929d1397d7bd7b2753b52ebc3988f7e87... Author: Thomas Segismont tsegismo@redhat.com Date: 2014-06-16 (Mon, 16 Jun 2014)
Changed paths: A modules/plugins/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/HibernatePersistenceUnitComponent.java M modules/plugins/jboss-as-7/src/main/resources/META-INF/rhq-plugin.xml M modules/plugins/jboss-as-7/src/test/java/org/rhq/modules/plugins/jbossas7/itest/standalone/DeploymentRuntimeResourcesTest.java
Log Message: ----------- Bug 1107858 - [AS7] Exception during discovery of Query Cache resources of RHQ Server resource
Instead of importing tons of Query Cache resources, AS7 plugin will mimic Hibernate Plugin's behavior and expose a "viewQueries" operation to gather the Query Cache nodes statistics.
Added HibernatePersistenceUnitComponent to implement "viewQueries" operation. The operation processes Query Cache nodes in batches to avoid sending too many queries to the management interface Deleted the never used QueryCacheDiscovery class (updated API check file accordingly) Removed the commented-out Query Cache service in AS7 plugin descriptor and added the "viewQueries" operation on the Hibernate Persistence Unit service Added itest for the "viewQueries" operation
(cherry picked from commit a3480101861ae6aed8f20d9010507602796504cc)
Conflicts: modules/plugins/jboss-as-7/intentional-api-changes-since-4.11.0.xml modules/plugins/jboss-as-7/src/main/resources/META-INF/rhq-plugin.xml modules/plugins/jboss-as-7/src/test/java/org/rhq/modules/plugins/jbossas7/itest/standalone/DeploymentRuntimeResourcesTest.java