Example: Implementing user-defined categories
Look here for sample programs that illustrate how you can use the provided APIs to integrate customized data collections into Collection Services.
- Example: Data collection program
This program example collects some test data and stores it in a data buffer, which Collection Services copies to the collection object.
- Example: Program to register the data collection program
This sample program registers the data collection program from the previous example with Collection Services. After running, Collection Services displays the data collection program in the list of data collection categories.
- Example: Program to query the collection object
This sample program illustrates how to query the data stored in the collection object using the Java™ classes shipped in the ColSrv.jar file in the QIBM/ProdData/OS400/CollectionServices/lib directory path.
Parent topic:
Implementing user-defined categories in Collection Services