[Carbon-commits] [Carbon] svn commit r68129 - branches/carbon/3.0.0/components/bam/org.wso2.carbon.bam.gauges.ui/3.0.0/src/main/java/org/wso2/carbon/bam/gauges/ui

lahirul at wso2.com lahirul at wso2.com
Thu Jun 17 07:50:41 PDT 2010


Author: lahirul
Date: Thu Jun 17 07:50:41 2010
New Revision: 68129
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=68129

Log:
fixed an issue with fault types gadget by generating unique fault type names

Modified:
   branches/carbon/3.0.0/components/bam/org.wso2.carbon.bam.gauges.ui/3.0.0/src/main/java/org/wso2/carbon/bam/gauges/ui/BAMDataServiceDataProcessor.java

Modified: branches/carbon/3.0.0/components/bam/org.wso2.carbon.bam.gauges.ui/3.0.0/src/main/java/org/wso2/carbon/bam/gauges/ui/BAMDataServiceDataProcessor.java
URL: http://wso2.org/svn/browse/wso2/branches/carbon/3.0.0/components/bam/org.wso2.carbon.bam.gauges.ui/3.0.0/src/main/java/org/wso2/carbon/bam/gauges/ui/BAMDataServiceDataProcessor.java?rev=68129&r1=68128&r2=68129&view=diff
==============================================================================
--- branches/carbon/3.0.0/components/bam/org.wso2.carbon.bam.gauges.ui/3.0.0/src/main/java/org/wso2/carbon/bam/gauges/ui/BAMDataServiceDataProcessor.java	(original)
+++ branches/carbon/3.0.0/components/bam/org.wso2.carbon.bam.gauges.ui/3.0.0/src/main/java/org/wso2/carbon/bam/gauges/ui/BAMDataServiceDataProcessor.java	Thu Jun 17 07:50:41 2010
@@ -2140,10 +2140,17 @@
     		MediationFaultStatList stat = bamStatQueryAdminServiceClient.getMediationRealTimeFaultStat_temp(categoryType, serverId, mediationName, cacheId);
     		MediationFaultStat[] statList = stat.getFaultList();
 
+    		int dummy_id = 0; //TODO Fix till we can retrieve real fault type name from the backend.
     		for( MediationFaultStat faultStat : statList ) {
     			if( faultStat != null) {
     				int faultCount = faultStat.getFaultCount();
-    				String faultName = "Fault Name";
+    				String faultName = faultStat.getName();
+    				
+    				if( (faultName == null) || (faultName.equals("")) ) {
+    					faultName = "Fault Type" + dummy_id;
+    					dummy_id++;
+    				}
+    				
     				String statName = "Faults";
 
     				result.append(String.format(formatString2, 1, faultName)); // <level1>



More information about the Carbon-commits mailing list