Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] v2_0/Message.java MetadataMap Issue

Subject: perfsonar development work

List archive

Re: [pS-dev] v2_0/Message.java MetadataMap Issue


Chronological Thread 
  • From: Jason Zurawski <>
  • To:
  • Cc: "" <>
  • Subject: Re: [pS-dev] v2_0/Message.java MetadataMap Issue
  • Date: Tue, 29 Aug 2006 08:52:34 -0400

Guilherme;

Making some modifications to the CLMP, i've noticed that there is no method in the base Message class that lets you set a new MetadataMap. From what I understood, if I want to remove a metadata from a message within execution time, I have to: get the MetadataMap, remove the one I want, clear the MetadataMap of the Message and insert the Metadata's that left one by one.

From my testing the MetadataMap you get from getMetadataMap() isnt linked directly to the one in the Message, so removing it locally wont synchronize with the one inside the Message. Is there any known issues that would make implementing a method setMetadataMap(Map) something unwanted? Or maybe does anyone knows a better solution to the problem of having to remove metadata's in execution time?

I don't see a problem in adding this functionality, as long as there are checks in place to be sure you aren't inserting a null map and the other regular forms of java sanity checking. Be sure to test your theory extensively before uploading to the trunk.

As for the performance aspect, it sounds like a very complex way of removing metadata but I have not really tested any this or any other ways of doing it.
-jason



Archive powered by MHonArc 2.6.16.

Top of Page