[jboss-svn-commits] JBL Code SVN: r25727 - labs/jbossesb/workspace/platform/JBESB_4_4_SOA_4_3_GA/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Mar 19 06:30:37 EDT 2009


Author: kevin.conner at jboss.com
Date: 2009-03-19 06:30:36 -0400 (Thu, 19 Mar 2009)
New Revision: 25727

Modified:
   labs/jbossesb/workspace/platform/JBESB_4_4_SOA_4_3_GA/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ActionComponent.java
Log:
Incorporate JBESB-2468 into SOA branch

Modified: labs/jbossesb/workspace/platform/JBESB_4_4_SOA_4_3_GA/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ActionComponent.java
===================================================================
--- labs/jbossesb/workspace/platform/JBESB_4_4_SOA_4_3_GA/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ActionComponent.java	2009-03-19 08:43:09 UTC (rev 25726)
+++ labs/jbossesb/workspace/platform/JBESB_4_4_SOA_4_3_GA/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ActionComponent.java	2009-03-19 10:30:36 UTC (rev 25727)
@@ -110,8 +110,8 @@
     	int success = 0;
     	int failed = 0;
     	
-    	int counterBytesFailed = 0;
-    	int counterBytesProcessed = 0;
+    	long counterBytesFailed = 0;
+    	long counterBytesProcessed = 0;
     	for (MeasurementScheduleRequest request : requests) {
         	String metricName = request.getName();
         	if (metricName.equals (SUCCESS_METRIC_NAME)) {
@@ -143,17 +143,17 @@
         		}
         	} else if (metricName.equals(BYTESPROCESSED_METRIC_NAME)) {
         		EmsAttribute attribute = this.bean.getAttribute(actionName + " " + OVERALL_BYTES_PROCESSED);
-        		Integer bytesProcessed = new Integer(0);
+        		Long bytesProcessed = new Long(0);
         		if (attribute != null) {
-        			bytesProcessed = (Integer) attribute.refresh();
+        			bytesProcessed = (Long) attribute.refresh();
         			counterBytesProcessed = bytesProcessed.intValue();
         		}
         		report.addData(new MeasurementDataNumeric(request, new Double(bytesProcessed.doubleValue())));
         	} else if (metricName.equals(BYTESFAILED_METRIC_NAME)) {
         		EmsAttribute attribute = this.bean.getAttribute(actionName + " " + OVERALL_BYTES_FAILED);
-        		Integer bytesFailed = new Integer(0);
+        		Long bytesFailed = new Long(0);
         		if (attribute != null) {
-        			bytesFailed = (Integer) attribute.refresh();
+        			bytesFailed = (Long) attribute.refresh();
         			counterBytesFailed += bytesFailed.intValue();
         		}
         		report.addData(new MeasurementDataNumeric(request, new Double(bytesFailed.doubleValue())));        		




More information about the jboss-svn-commits mailing list