I have found the Hawk sample programs on the cd, but I cannot find any documentation explaining what they do. Is it provided in the manuals or in the cd anywhere?

I have found the Hawk sample programs on the cd, but I cannot find any documentation explaining what they do. Is it provided in the manuals or in the cd anywhere?

book

Article ID: KB0091796

calendar_today

Updated On:

Products Versions
TIBCO Hawk -
Not Applicable -

Description

Resolution:
The files under &ltHAWK_ROOT>/samples/src are basically sample C code for illustrating AMI. If you compile them and run them, you will see that they provide simple methods of setDebugLevel and getDebugLevel (ami_sample1.c and ami_sample3.cpp) and additional methods of uptime (ami_sample2.c ami_sample4.cpp). Although they are not described in the programmer's guide, you should first read the programmer's guide and understand the concept for AMI. Then I would recommend trying out the Java sample program spot &ltHAWK_ROOT>/samples/scripts/run_spot.  You can see the AMI interaction between spot (microagent) and the agent through the display. Alternatively, and especially if you're planning to instrument AMI in your applications, you should use AMI workbench, which is provided under &ltHAWK_ROOT>/samples/scripts/amiworkbench.bat.  This Java gui tool will behave like the agent, but with a gui so you don't need to run the agent and display. In addition, all the AMI messages between the AMI workbench (Java gui) and the Spot (microagent) will be in stdout so you can examine them closely.

Furthermore, you could run the compiled ami_sample1 or ami_sample2 with HMA or other TIBCO applications that are instrumented with AMI, and examine the interaction with the AMI workbench.

Issue/Introduction

I have found the Hawk sample programs on the cd, but I cannot find any documentation explaining what they do. Is it provided in the manuals or in the cd anywhere?

Environment

Product: TIBCO Hawk Version: All OS: All --------------------