perfsonar-dev - perfsonar: r2457 - branches/perfsonarui/src/org/perfsonar/perfsonarui/demo
Subject: perfsonar development work
List archive
- From:
- To:
- Subject: perfsonar: r2457 - branches/perfsonarui/src/org/perfsonar/perfsonarui/demo
- Date: Wed, 6 Jun 2007 09:04:09 -0400
Author: nina
Date: 2007-06-06 09:04:09 -0400 (Wed, 06 Jun 2007)
New Revision: 2457
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/demo/DemoPlugin.java
Log:
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/demo/DemoPlugin.java
===================================================================
--- branches/perfsonarui/src/org/perfsonar/perfsonarui/demo/DemoPlugin.java
2007-06-06 12:40:10 UTC (rev 2456)
+++ branches/perfsonarui/src/org/perfsonar/perfsonarui/demo/DemoPlugin.java
2007-06-06 13:04:09 UTC (rev 2457)
@@ -31,6 +31,10 @@
import org.perfsonar.perfsonarui.PerfsonarSchema;
import org.perfsonar.perfsonarui.ResponseData;
import org.perfsonar.perfsonarui.SmartMARequest;
+import org.perfsonar.perfsonarui.ippm.IPPMRequest;
+import org.perfsonar.perfsonarui.ma.MARequest;
+import org.perfsonar.perfsonarui.ma.MARequestPerfsonar2_0;
+import org.perfsonar.perfsonarui.ma.MARequest_NMWG2;
import org.perfsonar.perfsonarui.ma.MARequest_NMWG2_Netutil;
import org.perfsonar.perfsonarui.ma.UserData;
import org.perfsonar.perfsonarui.ma.UserDataComparator;
@@ -82,8 +86,11 @@
return new SmartMARequest() {
@Override
public IPerfsonarRequest createMARequest(MAEndpoint
endpoint) {
- return new MARequest_NMWG2_Netutil();
- }
+ IPerfsonarSchema schema =
endpoint.getSchema();
+ if (schema.equals("NMWG2v2_netutil")) return
new MARequest_NMWG2_Netutil();
+ else if
(schema.equals(MARequestPerfsonar2_0.schemaID)) return new
MARequestPerfsonar2_0();
+ else return null;
+ }
};
}
@Override
@@ -137,7 +144,7 @@
public List<IPerfsonarSchema> getSupportedRequests() {
ArrayList<IPerfsonarSchema> supported = new
ArrayList<IPerfsonarSchema>();
- supported.add(new PerfsonarSchema("NMWG2v2_netutil"));
+ supported.add(new
PerfsonarSchema(MARequestPerfsonar2_0.schemaID));
return supported;
}
- perfsonar: r2457 - branches/perfsonarui/src/org/perfsonar/perfsonarui/demo, svnlog, 06/06/2007
Archive powered by MHonArc 2.6.16.