![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
Figure 53 Creating a New Rule
Export MAD allows you to save the microagent descriptor in its XML representation. For more information on exporting and importing microagent descriptors using their XML representation, refer to TIBCO Hawk Configuration Object API Reference.See Building a Rule in TIBCO Hawk Administrator’s Guide for more details.The data source for a rule is its source of input data, and is always a method of a microagent. When a rule is active, the TIBCO Hawk agent subscribes to the specified method and passes method results to the test. The following example uses the BusinessConnect-zhezhang-dt-Interior-Server_name=CANCELPOLLER microagent as a representative data source.
1. Click the BusinessConnect-zhezhang-dt-Interior-Server_name=CANCELPOLLER microagent.
2. Click the _getisHung method.When invoked, the _getisHung() method returns information about the status of the CANCELPOLLER thread.This is a synchronous method. When the rule is active, the agent subscribes to this method and receives data every 60 seconds, by default. For asynchronous methods, such as onMBeanNotification() in the BusinessConnect-zhezhang-dt-Interior-Server:type=mgmt,name=InteriorController-Heartbeat microagent, no collection interval is required.Figure 54 Specifying a Data Source
4. Click OK.The rule is now configured to use the _getisHung() method of the BusinessConnect-zhezhang-dt-Interior-Server_name=CANCELPOLLER microagent as a data source. In the Rule Editor window, _getisHung():60 is displayed in the Data Source field.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |