Apama 10.15.0 | Connecting Apama Applications to External Components | Working with IAF Plug-ins | Monitoring Adapter Status | IAFStatusManager
 
IAFStatusManager
The IAFStatusManager translates events from the adapter into simple status events for applications to consume. The monitor, IAFStatusManager.mon is found in the Apama installation's adapters\monitors directory. In order to use the monitor:
*The adapter author is required to return information about the adapter's open connections in the adapter's getStatus method, which is called every few seconds when the IAFStatusManager service monitor polls the IAF for status. Adapters written in Java must return an ExtendedTransportStatus or ExtendedCodecStatus object from getStatus(); adapters written in C++ must return AP_EventTransportStatus or AP_ExtendedCodecStatus.
*The adapter may optionally also send notifications about a connection as soon as it is opened or closed, by sending a normalized event representation of the AdapterConnectionOpened or AdapterConnectionClosedevents to the correlator. This simply allows the correlator to find out about connectivity change more quickly than is the case if it needs to wait for the next status poll.
The IAFStatusManager has the following interfaces:
*An application interface to communicate with the consumers of the adapter status information — usually adapter service monitors.
*An IAF adapter interface is optional and can be used by adapter authors to issue connection notifications.