![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
•
•
• HAWK_HOME/examples/ami_api directoryThis directory contains three sub-directories c, cpp, and java that contain sample applications for the C, C++, and Java TIBCO Hawk AMI APIs, respectively. These applications are discussed in the following sections.To pass the parameters for executing AMI program, use the properties file hawk_example.props available at HAWK_HOME/examples/hawk_example.props. This properties file defines the transport to be used and the parameters required to establish the transport session.
− Filename: ami_samplex.c
− Display name: ami_samplex
− Internal name: COM.TIBCO.hawk.ami_api.c.ami_samplexThe five sample applications can be built by following the instructions in the Makefile.sample file, which is also located in the sample directory.This sample is identical to ami_sample1.c except that it demonstrates how to create methods that return tabular data.
• To execute, for example, ami_samplex program, use the following command line:Filename: AmiSample1.cppDisplay name: AmiSample1Internal name: COM.TIBCO.hawk.ami_api.cpp.AmiSample1The sample application can be built by following the instructions in the Makefile.sample file, also located in the sample directory.
• To execute AmiSample1 program, use the following command line:
• AmiSample.Java:a sample application designed to illustrate how to instrument a Java application using the TIBCO Hawk AMI API for Java.
• Spot.java: a simple GUI application using TIBCO Hawk AMI API for Java.
• SpotAmi.java: AMI Java API instrumentation for the Spot application.This sample demonstrates how an existing application, Spot.java, can be instrumented with the AMI Java API.The AMI sample spot.java has the following AMI application names:
• Display name: Spot
• Internal name: COM.TIBCO.hawk.ami_api.java.Spot
•
• tibrvj.jar from the TIBCO Rendezvous java directory
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |