Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 9 TIBCO Adapters and TIBCO Hawk : TIBCO Adapter SDK API to TIBCO Hawk

TIBCO Adapter SDK API to TIBCO Hawk
In addition to working with the predefined TIBCO Hawk AMI, the TIBCO Adapter SDK provides its own API to create AMI methods for use with TIBCO Hawk. The API is modified in several ways:
Data formats—By default, data that are managed by TIBCO Hawk are TIBCO Rendezvous messages. However, SDK-based adapters can also send information in MTree format to TIBCO Hawk and retrieve information in MTree format from TIBCO Hawk.
Configuration information—By default, an application that wants to use TIBCO Hawk must create a TIBCO Rendezvous session. If you use the SDK, MApp will establish a TIBCO Rendezvous session for use with TIBCO Hawk, based on the adapter configuration in the project repository.
Session management—The SDK creates a TIBCO Hawk microagent (unless explicitly prohibited during adapter configuration) and registers any MHawkMethod instances as TIBCO Hawk methods. You can then invoke these methods from TIBCO Hawk to monitor the adapter.
TIBCO Hawk Integration Classes
The SDK makes the following classes available for TIBCO Hawk integration:
MHawkMicroagent—Encapsulates information about the MHawkMicroagent.
During initialization, MApp creates an instance of this class unless the adapter instance description object specifies that a TIBCO Hawk microagent should not be available. Note that a microagent is available by default.
MHawkMethod—Encapsulates a method.
For each method you want to have available from TIBCO Hawk, create a subclass of MHawkMethod and implement its processMethodInvocation() method.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved