perfsonar-dev - perfsonar: r4169 - trunk/ps-mdm-flowsa-ma/src/main/java/org/perfsonar/service/measurementArchive/flowsa
Subject: perfsonar development work
List archive
perfsonar: r4169 - trunk/ps-mdm-flowsa-ma/src/main/java/org/perfsonar/service/measurementArchive/flowsa
Chronological Thread
- From:
- To:
- Subject: perfsonar: r4169 - trunk/ps-mdm-flowsa-ma/src/main/java/org/perfsonar/service/measurementArchive/flowsa
- Date: Sun, 13 Jul 2008 13:19:48 -0400
Author: michael.bischoff
Date: 2008-07-13 13:19:47 -0400 (Sun, 13 Jul 2008)
New Revision: 4169
Modified:
trunk/ps-mdm-flowsa-ma/src/main/java/org/perfsonar/service/measurementArchive/flowsa/LSRegistrationControll.java
Log:
Added Eventtypes to LS registration.
Modified:
trunk/ps-mdm-flowsa-ma/src/main/java/org/perfsonar/service/measurementArchive/flowsa/LSRegistrationControll.java
===================================================================
---
trunk/ps-mdm-flowsa-ma/src/main/java/org/perfsonar/service/measurementArchive/flowsa/LSRegistrationControll.java
2008-07-13 00:55:43 UTC (rev 4168)
+++
trunk/ps-mdm-flowsa-ma/src/main/java/org/perfsonar/service/measurementArchive/flowsa/LSRegistrationControll.java
2008-07-13 17:19:47 UTC (rev 4169)
@@ -44,11 +44,13 @@
public void update(Set<Exporter> exporters) throws PerfSONARException
{
PerfsonarContextComponent context =
(PerfsonarContextComponent)
AuxiliaryComponentManager.getInstance().getComponent(ComponentNames.CONTEXT);
StringBuilder builder = new StringBuilder();
+ builder.append("<nmwg:metadata id=\"meta2\">");
+
builder.append(
- "<nmwg:metadata id=\"meta2\">" +
"<flow:subject id=\"subj1\"
xmlns:flow=\"http://ggf.org/ns/nmwg/tools/flow/2.0/\">" +
"<nmwgtopo3:network id=\"network1\"
xmlns:nmwgtopo3=\"http://ggf.org/ns/nmwg/topology/base/3.0/\">"
);
+
int i = 1;
for(Exporter exporter : exporters) {
builder.append("<nmwgtopo3:node
id=\"router").append(i).append("\">");
@@ -56,11 +58,20 @@
builder.append("</nmwgtopo3:node>");
i++;
}
+
builder.append(
"</nmwgtopo3:network>" +
- "</perfsonar:subject>" +
- "</nmwg:metadata>"
- );
+ "</perfsonar:subject>"
+ );
+
+ for(EventType eventType : EventType.values()) {
+ builder.append("<nmwg:eventType>");
+ builder.append(eventType.toString());
+ builder.append("</nmwg:eventType>");
+ }
+
+ builder.append("</nmwg:metadata>");
+
context.put(REGISTRATION_DATA, new String[] {
builder.toString() });
}
- perfsonar: r4169 - trunk/ps-mdm-flowsa-ma/src/main/java/org/perfsonar/service/measurementArchive/flowsa, svnlog, 07/13/2008
Archive powered by MHonArc 2.6.16.