Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 4 AMI API : AMI Method Classes

AMI Method Classes
The methods define the application interface to the TIBCO Hawk agent. When AmiSession announces itself to the TIBCO Hawk agent, the agent queries for a description of the available methods. AmiSession creates a description of available AMI method objects based on implementations of AmiMethod.
AmiMethod class provides a foundation for classes that describe synchronous, and asynchronous AMI methods.
The AmiAsyncMethod class extends the AmiMethod class to send data whenever it becomes available. This allows the AMI-instrumented application to actively publish data whenever data becomes available.
The AmiSyncMethod class extends the AmiMethod class to return synchronous data. With AmiSyncMethod class, the method returns data only upon request.
The AmiSubcription class encapsulates an asynchronous method subscription.
AmiMethod Class
Class
Declaration
class AmiMethod
Purpose
This class implements methods.
Remarks
Classes derived from AmiMethod can be registered with AmiSession. The AmiSyncMethod class extends the AmiMethod class to implement synchronous methods. The AmiAsyncMethod class extends the AmiMethod class to implement asynchronous methods.
Member Summary
 
Callback on arrival of a method invocation method from the monitoring agent. See AmiParameter Class.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved