Start of change

Java™ Ctgstat2 statistics recording sample

This sample shows how an application can parse an XML statistics log file, validate it against the ctgstatslog.xsd XML schema file and output statistics in a simple text format.

The supplied sample Ctgstat2 demonstrates a simple application using the XML statistics log file and XML schema file. The XML schema file, ctgstatslog.xsd, will need to be in the same directory as the XML statistics log file.

The statistics sample program is written in Java™ and supplied in samples/java/com/ibm/ctg/samples/stats/Ctgstat2.java. A precompiled version of com.ibm.ctg.samples.stats.Ctgstat2 is included in the Java archive file classes/ctgsamples.jar.

Usage:
java com.ibm.ctg.samples.stats.Ctgstat2 filename
where filename is the name of the XML statistics file.


Information Information

Feedback


Timestamp icon Last updated: Tuesday, 19 November 2013


https://ut-ilnx-r4.hursley.ibm.com/tg_latest/help/topic/com.ibm.cics.tg.doc//progde/ctgstat2.html
End of change