Author: tejones
Date: 2010-08-30 12:25:41 -0400 (Mon, 30 Aug 2010)
New Revision: 2503
Modified:
branches/7.1.x/console/src/main/java/org/teiid/rhq/plugin/VDBComponent.java
Log:
TEIID-1202: Changed Active VDB status to display as UP, else DOWN
Modified: branches/7.1.x/console/src/main/java/org/teiid/rhq/plugin/VDBComponent.java
===================================================================
--- branches/7.1.x/console/src/main/java/org/teiid/rhq/plugin/VDBComponent.java 2010-08-30
15:39:33 UTC (rev 2502)
+++ branches/7.1.x/console/src/main/java/org/teiid/rhq/plugin/VDBComponent.java 2010-08-30
16:25:41 UTC (rev 2503)
@@ -200,8 +200,13 @@
.getName()
.equals(
PluginConstants.ComponentType.VDB.Metrics.STATUS)) {
- report.addData(new MeasurementDataTrait(
- request, (String) metricReturnObject));
+ if (((String) metricReturnObject).equals("ACTIVE")) {
+ report.addData(new MeasurementDataTrait(
+ request, "UP"));
+ }else{
+ report.addData(new MeasurementDataTrait(
+ request, "DOWN"));
+ }
} else {
if (request
.getName()
Show replies by date