Skip to Content.
Sympa Menu

perfsonar-dev - parameter elements with the same name

Subject: perfsonar development work

List archive

parameter elements with the same name


Chronological Thread 
  • From: Roman Lapacz <>
  • To: Jason Zurawski <>
  • Cc: "" <>
  • Subject: parameter elements with the same name
  • Date: Thu, 12 Oct 2006 12:38:46 +0200



Hi,

I've just realized that putting more than one parameter with the name supportedEventType in the parameters element will not work correctly. Take a look at the example (taken from the test rrd metadata config file):


<nmwg:metadata id="meta1">
<netutil:subject id="subj1">
<nmwgt:interface>
<nmwgt:hostName>test-hostName</nmwgt:hostName>
<nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
<nmwgt:ifName>test-0</nmwgt:ifName>
<nmwgt:ifDescription>test descripyion</nmwgt:ifDescription>
<nmwgt:direction>in</nmwgt:direction>
<nmwgt:authRealm>TestRealm</nmwgt:authRealm>
<nmwgt:capacity>1000BaseT</nmwgt:capacity>
</nmwgt:interface>
</netutil:subject>
<nmwg:parameters>
<nmwg:parameter name="supportedEventType">utilization</nmwg:parameter>
<nmwg:parameter name="supportedEventType">packet_loss</nmwg:parameter>
</nmwg:parameters>
</nmwg:metadata>


Doing this we want to use the same metadata/subject for two metrics (to not repeat metadata element for different eventType elements). Unfortunately the java class representing parameters element (src/org/ggf/ns/nmwg/base/v2_0/Parameters.java) uses HashMap to store parameter elements. This map can not keep two parameter elements with the same name.

Jason, could you take look at this? What's your opinion on this? Others?


Roman




--

// PSNC, Poland
// phone: (+48 61) 858 20 24
// http://www.man.poznan.pl




Archive powered by MHonArc 2.6.16.

Top of Page