perfsonar-dev - r1516 - trunk/perfsonar/src/org/perfsonar/service/measurementArchive/storageManager/responseGenerator
Subject: perfsonar development work
List archive
r1516 - trunk/perfsonar/src/org/perfsonar/service/measurementArchive/storageManager/responseGenerator
Chronological Thread
- From:
- To:
- Subject: r1516 - trunk/perfsonar/src/org/perfsonar/service/measurementArchive/storageManager/responseGenerator
- Date: Tue, 8 Aug 2006 06:04:14 -0400
Author: roman
Date: 2006-08-08 06:04:13 -0400 (Tue, 08 Aug 2006)
New Revision: 1516
Modified:
trunk/perfsonar/src/org/perfsonar/service/measurementArchive/storageManager/responseGenerator/L2PathStatusResponseGenerator.java
Log:
datum element containing L2 path status result(s) in the response has change
the namespace (nmwg -> ifent)
Modified:
trunk/perfsonar/src/org/perfsonar/service/measurementArchive/storageManager/responseGenerator/L2PathStatusResponseGenerator.java
===================================================================
---
trunk/perfsonar/src/org/perfsonar/service/measurementArchive/storageManager/responseGenerator/L2PathStatusResponseGenerator.java
2006-08-07 18:58:57 UTC (rev 1515)
+++
trunk/perfsonar/src/org/perfsonar/service/measurementArchive/storageManager/responseGenerator/L2PathStatusResponseGenerator.java
2006-08-08 10:04:13 UTC (rev 1516)
@@ -10,10 +10,12 @@
import java.util.Map;
import java.util.Date;
+import org.xml.sax.helpers.NamespaceSupport;
+
import org.ggf.ns.nmwg.base.v2_0.Data;
-import org.ggf.ns.nmwg.base.v2_0.Datum;
-import org.ggf.ns.nmwg.event.status.base.v2_0.StatusOper;
-import org.ggf.ns.nmwg.event.status.base.v2_0.StatusAdmin;
+import org.ggf.ns.nmwg.event.status.base.v2_0.Datum;
+import org.ggf.ns.nmwg.event.status.base.v2_0.StateOper;
+import org.ggf.ns.nmwg.event.status.base.v2_0.StateAdmin;
import org.perfsonar.commons.auxiliary.AuxiliaryComponentManager;
import org.perfsonar.commons.auxiliary.ComponentNames;
@@ -104,22 +106,23 @@
if (column.equals("value")) {
- StatusOper statusOper = new StatusOper();
- statusOper.setStatusOper(strValue);
- datum.setChild(statusOper);
+ StateOper stateOper = new StateOper();
+ stateOper.setStateOper(strValue);
+ datum.addChild(stateOper);
- StatusAdmin statusAdmin = new StatusAdmin();
- statusAdmin.setStatusAdmin("unknown");
- datum.setChild(statusAdmin);
+ StateAdmin stateAdmin = new StateAdmin();
+ stateAdmin.setStateAdmin("unknown");
+ datum.addChild(stateAdmin);
} else if (column.equals("valueUnits")) {
- datum.setValueUnits(strValue);
} else if (column.equals("timeValue")) {
- datum.setTimeValue(strValue);
- datum.setTimeType("unix");
+ NamespaceSupport support = new NamespaceSupport();
+ support.declarePrefix(datum.getPrefix(),
datum.getUri());
+ datum.addAttr("timeValue" , strValue, support);
+ datum.addAttr("timeType" , "unix", support);
}
- r1516 - trunk/perfsonar/src/org/perfsonar/service/measurementArchive/storageManager/responseGenerator, svnlog, 08/08/2006
Archive powered by MHonArc 2.6.16.