[teiid-commits] teiid SVN: r2507 - in branches/7.1.x: engine/src/main/java/org/teiid/dqp/internal/process and 1 other directory.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Mon Aug 30 17:48:07 EDT 2010


Author: rareddy
Date: 2010-08-30 17:48:07 -0400 (Mon, 30 Aug 2010)
New Revision: 2507

Modified:
   branches/7.1.x/console/src/main/resources/META-INF/rhq-plugin.xml
   branches/7.1.x/engine/src/main/java/org/teiid/dqp/internal/process/DQPCore.java
Log:
TEIID-1209: fixing the descriptions in jopr

Modified: branches/7.1.x/console/src/main/resources/META-INF/rhq-plugin.xml
===================================================================
--- branches/7.1.x/console/src/main/resources/META-INF/rhq-plugin.xml	2010-08-30 20:23:40 UTC (rev 2506)
+++ branches/7.1.x/console/src/main/resources/META-INF/rhq-plugin.xml	2010-08-30 21:48:07 UTC (rev 2507)
@@ -258,27 +258,27 @@
 
         <metric displayName="Prepared Plan Cache Hit Ratio %" defaultOn="true"
             displayType="detail" category="performance" property="PREPARED_PLAN_CACHE.hitRatio"
-            description="Prepared plan cache hit ratio" />
+            description="Percentage of positive cache hits" />
 
         <metric displayName="Prepared Plan Cache Size" defaultOn="true"
             displayType="detail" category="performance" property="PREPARED_PLAN_CACHE.totalEntries"
-            description="Prepared plan cache size" />
+            description="Current number of entries in cache" />
 
         <metric displayName="Prepared Plan Cache # of Requests" defaultOn="true"
             displayType="detail" category="performance" property="PREPARED_PLAN_CACHE.requestCount"
-            description="Prepared plan cache # Requests made aginst cache" />
+            description="Total number of requests made aginst cache" />
             
         <metric displayName="ResultSet Cache Hit Ratio %" defaultOn="true"
             displayType="detail" category="performance" property="QUERY_SERVICE_RESULT_SET_CACHE.hitRatio"
-            description="ResultSet cache hit ratio" />
+            description="Percentage of positive cache hits" />
 
         <metric displayName="ResultSet Cache Size" defaultOn="true"
             displayType="detail" category="performance" property="QUERY_SERVICE_RESULT_SET_CACHE.totalEntries"
-            description="ResultSet cache Size" />
+            description="Current number of entries in cache" />
 
         <metric displayName="ResultSet Cache  # of Requests" defaultOn="true"
             displayType="detail" category="performance" property="QUERY_SERVICE_RESULT_SET_CACHE.requestCount"
-            description="ResultSet cache  # Requests made aginst cache" />
+            description="Total number of requests made aginst cache" />
 
 		<resource-configuration>
 			<c:group name="teiidProperties" displayName="Runtime Engine Properties"

Modified: branches/7.1.x/engine/src/main/java/org/teiid/dqp/internal/process/DQPCore.java
===================================================================
--- branches/7.1.x/engine/src/main/java/org/teiid/dqp/internal/process/DQPCore.java	2010-08-30 20:23:40 UTC (rev 2506)
+++ branches/7.1.x/engine/src/main/java/org/teiid/dqp/internal/process/DQPCore.java	2010-08-30 21:48:07 UTC (rev 2507)
@@ -568,7 +568,7 @@
 	private CacheStatisticsMetadata buildCacheStats(String name, SessionAwareCache cache) {
 		CacheStatisticsMetadata stats = new CacheStatisticsMetadata();
 		stats.setName(name);
-		stats.setHitRatio(cache.getRequestCount() == 0?0:(cache.getCacheHitCount()/cache.getRequestCount())*100);
+		stats.setHitRatio(cache.getRequestCount() == 0?0:((double)cache.getCacheHitCount()/cache.getRequestCount())*100);
 		stats.setTotalEntries(cache.getTotalCacheEntries());
 		stats.setRequestCount(cache.getRequestCount());
 		return stats;



More information about the teiid-commits mailing list