Step 1: Adding entry to Configuration files
- Add traceroute metadata information to $PERFSONAR/conf/sql_database_TEST.xml (e.g)
- Make ibatis configuration files, providing JDBC connection parameter to the traceroute datasource.
Step 2: MetadataQueryGenerator
Implement an interface org.perfsonar.service.measurementArchive.metadataConfig.queryGenerator.MetadataQueryGenerator.
view: TracerouteMetadataQueryGenerator.java
Step 3: ResponseGenerator
Implmeent an Interface org.perfsonar.service.measurementArchive.sqlType.fetch.ResponseGenerator.
view: TracerouteResponseGenerator.java
Step 4: Adding Mapping entry of new Metric to the service
Add the implmented classes entry into the $PERFSONAR/conf/eventType_map.xml
<eventType>
<name>traceroute</name>
<metadataQueryGenerator>org.perfsonar.service.measurementArchive.metadataConfig.queryGenerator.TracerouteQueryGenerator</metadataQueryGenerator>
<responseGenerator>org.perfsonar.service.measurementArchive.sqlType.fetch.TracerouteResponseGenerator</responseGenerator>
</eventType>
Step 5: Recompile and redeploy the service
Executing the following commands in order from $PERFSONAR/ant directory and enter the exact information asked for the configuration
- ant -f build-sqlma.xml xmldb-init-sqlma
- ant -f build-sqlma.xml configure-sqlma
- start/restart tomcat
- ant -f build-sqlma.xml undeploy-sqlma
- ant -f build-sqlma.xml deploy-sqlma
Step 6: Testing
TODO: