Skip to Content.
Sympa Menu

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

Subject: perfsonar development work

List archive

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


Chronological Thread 
  • From:
  • To: "" <>
  • Subject: Re: [pS-dev] v2_0/Message.java MetadataMap Issue CORRECTION
  • Date: Tue, 29 Aug 2006 10:06:00 -0300

Hi again,

It seemed it was my mistake in the code. The metadataMap passed by the getMetadataMap is actually synchronized, I was using the wrong Id to remove the metadata from the map. The method I had made for setting the new metadataMap was redundant.

Sorry for any inconvenience,
Guilherme Fernandes

Quoting
:

Hi all,

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 will be modifying Message.java for testing purposes until a
definition comes up for this)

Guilherme Fernandes

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




Archive powered by MHonArc 2.6.16.

Top of Page