Java Ctgstat1 statistics API sample

This sample shows how Gateway daemon statistics can be obtained by Java clients.

The statistics sample program is written in Java™ and is in samples/java/com/ibm/ctg/samples/stats/Ctgstat1.java.

The ctgstat1 Java sample program demonstrates the following functions:

  1. Connecting to the statistical API port.
  2. Querying running Gateway daemons for statistics in the connection manager resource group.
  3. Obtaining values for these statistics.
  4. Retrieving and displaying information about the Gateway daemon running time and the total number of requests made.

A precompiled version of com.ibm.ctg.samples.stats.Ctgstat1 is included in the Java archive file classes/ctgsamples.jar.

The ctgstats.jar file must be on the class path.

For information about the API see Statistics Java API.


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/Ctgstat1java.html