perfsonar-dev - perfsonar: r2601 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ma
Subject: perfsonar development work
List archive
- From:
- To:
- Subject: perfsonar: r2601 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ma
- Date: Wed, 8 Aug 2007 06:58:38 -0400
Author: nina
Date: 2007-08-08 06:58:37 -0400 (Wed, 08 Aug 2007)
New Revision: 2601
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/MARequest_Errors.java
Log:
support for input errors / output drops schema
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/MARequest_Errors.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/MARequest_Errors.java
2007-08-08 10:26:51 UTC (rev 2600)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/MARequest_Errors.java
2007-08-08 10:58:37 UTC (rev 2601)
@@ -29,6 +29,11 @@
package org.perfsonar.perfsonarui.ma;
+import org.perfsonar.perfsonarui.AbstractUserData;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
public class MARequest_Errors extends MARequestPerfsonar2_0 {
public MARequest_Errors() {
super(2,3);
@@ -41,4 +46,20 @@
protected String getSupportedEventType() {
return "http://ggf.org/ns/nmwg/characteristic/errors/2.0";
}
+ protected synchronized void processData(Node data, UserData userData) {
+ //result code
+ NodeList datum =
((org.w3c.dom.Element)data).getElementsByTagNameNS(URI_perfsonar[perfsonar_version][1],"datum");
+
+ if (datum.getLength()>0)
+ for (int i=0; i < datum.getLength();i++) {
+ Node n = datum.item(i);;
+ if (n instanceof Element) {
+ org.w3c.dom.Element d = (org.w3c.dom.Element)n;
+
+ }
+ logger.warn(">>\t" + userData.getId() + '\t'+
userData.getHostname(AbstractUserData.ID_RESPONSE) + '\t' +
d.getAttribute("value")+ '\t' + d.getAttribute("valueUnits")+ '\t' +
d.getAttribute("timeValue"));
+ }
+ else
+ super.processData(data, userData);
+ }
}
- perfsonar: r2601 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ma, svnlog, 08/08/2007
Archive powered by MHonArc 2.6.16.