Skip to Content.
Sympa Menu

perfsonar-dev - nmwg: r331 - in trunk/nmwg/java/org/ggf/ns/nmwg: base/v2_0 tools tools/cron tools/cron/v2_0

Subject: perfsonar development work

List archive

nmwg: r331 - in trunk/nmwg/java/org/ggf/ns/nmwg: base/v2_0 tools tools/cron tools/cron/v2_0


Chronological Thread 
  • From:
  • To: ,
  • Subject: nmwg: r331 - in trunk/nmwg/java/org/ggf/ns/nmwg: base/v2_0 tools tools/cron tools/cron/v2_0
  • Date: Sat, 19 Jan 2008 18:34:21 -0500

Author: fernandes
Date: 2008-01-19 18:34:21 -0500 (Sat, 19 Jan 2008)
New Revision: 331

Added:
trunk/nmwg/java/org/ggf/ns/nmwg/tools/cron/
trunk/nmwg/java/org/ggf/ns/nmwg/tools/cron/v2_0/
trunk/nmwg/java/org/ggf/ns/nmwg/tools/cron/v2_0/Datum.java
trunk/nmwg/java/org/ggf/ns/nmwg/tools/cron/v2_0/Parameters.java
trunk/nmwg/java/org/ggf/ns/nmwg/tools/cron/v2_0/Subject.java
Modified:
trunk/nmwg/java/org/ggf/ns/nmwg/base/v2_0/Message.java
Log:
cron namespace for CL-MP Cron-Like scheduler
new method added to Message class for synchronization of metadatas

Modified: trunk/nmwg/java/org/ggf/ns/nmwg/base/v2_0/Message.java
===================================================================
--- trunk/nmwg/java/org/ggf/ns/nmwg/base/v2_0/Message.java 2008-01-14
20:16:46 UTC (rev 330)
+++ trunk/nmwg/java/org/ggf/ns/nmwg/base/v2_0/Message.java 2008-01-19
23:34:21 UTC (rev 331)
@@ -14,16 +14,16 @@
*/
package org.ggf.ns.nmwg.base.v2_0;

+import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
+import java.util.List;
import java.util.Map;
-import java.util.Vector;

import org.xml.sax.ContentHandler;
import org.xml.sax.helpers.AttributesImpl;
import org.xml.sax.helpers.NamespaceSupport;
-import org.xml.sax.helpers.NamespaceSupport;

public class Message extends Element {

@@ -164,6 +164,25 @@
}

/**
+ * updates MetadataMap keys
+ */
+ public void updateMetadata() {
+ Iterator keys = metadataMap.keySet().iterator();
+ List updatedKeys = new ArrayList();
+ while(keys.hasNext()){
+ Object key = keys.next();
+ Metadata metadata = (Metadata)metadataMap.get(key);
+ if (!key.equals(metadata.getId()))
+ updatedKeys.add(key);

+ }
+ for (Object key : updatedKeys){
+ Metadata metadata = (Metadata)metadataMap.get(key);
+ metadataMap.remove(key);
+ metadataMap.put(metadata.getId(), metadata);
+ }
+ }
+
+ /**
* Adds a metadata to the vector.
*/
public void setMetadata(Metadata newMetadata) {

Added: trunk/nmwg/java/org/ggf/ns/nmwg/tools/cron/v2_0/Datum.java

Added: trunk/nmwg/java/org/ggf/ns/nmwg/tools/cron/v2_0/Parameters.java

Added: trunk/nmwg/java/org/ggf/ns/nmwg/tools/cron/v2_0/Subject.java



  • nmwg: r331 - in trunk/nmwg/java/org/ggf/ns/nmwg: base/v2_0 tools tools/cron tools/cron/v2_0, svnlog, 01/19/2008

Archive powered by MHonArc 2.6.16.

Top of Page