[jboss-svn-commits] JBL Code SVN: r25691 - labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Mar 17 12:43:18 EDT 2009
Author: tcunning
Date: 2009-03-17 12:43:18 -0400 (Tue, 17 Mar 2009)
New Revision: 25691
Modified:
labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ActionComponent.java
Log:
JBESB-2468
Merge over changes from SOA-785 into JBESB_4_4_GA_CP branch to prevent
cast errors on Integer/Long byte values.
Modified: labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ActionComponent.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ActionComponent.java 2009-03-17 14:19:28 UTC (rev 25690)
+++ labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ActionComponent.java 2009-03-17 16:43:18 UTC (rev 25691)
@@ -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