Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] Re: Adding new eventType to RRD MA 2.0

Subject: perfsonar development work

List archive

Re: [pS-dev] Re: Adding new eventType to RRD MA 2.0


Chronological Thread 
  • From: Roman Lapacz <>
  • To: Fausto Vetter <>
  • Cc: "" <>, Guilherme Fernandes <>
  • Subject: Re: [pS-dev] Re: Adding new eventType to RRD MA 2.0
  • Date: Thu, 29 Mar 2007 14:28:51 +0200



Some time ago Guilherme introduced owamp eventType and did this the way I described.

Roman




Roman Lapacz wrote:
Fausto Vetter wrote:
Hi Roman,

I installed the new version of MA RRD to make create new event types to our CLMP service, once we are considering save the results in RRD files. How do I add a new event type to RRD MA? Is it possible with the version 2 of perfsonar? should I have the src code to do this or is it just a matter of mapping stuff in conf files?

If metadata elements in your metadata configuration file will use interface elements (as it is for the utilization metric) then you can add this:

<eventType>
<name>your-new-eventType</name>
<metadataQueryGenerator>org.perfsonar.service.measurementArchive.metadataConfig.queryGenerator.UtilizationQueryGenerator</metadataQueryGenerator>
<responseGenerator>org.perfsonar.service.measurementArchive.sqlType.fetch.UtilizationResponseGenerator</responseGenerator>
<storeRequestProcess>org.perfsonar.service.measurementArchive.sqlType.store.UtilizationStoreRequestProcess</storeRequestProcess>
</eventType>


to eventType-map.xml file. Then redeploy the service.


But if metadata elements will be different then you will have to implement new class responseGenerator and probably storeRequestProcess. The former generates relevant xquery statement used to search in the metadata configuration file, the latter is used to generate message response. Follow the classes for utilization metric as examples.


Roman






Archive powered by MHonArc 2.6.16.

Top of Page