![]() |
Copyright © Cloud Software Group, Inc. All Rights Reserved |
An application that uses the Configuration Object API often needs to retrieve, update, or replace such configuration objects. To retrieve and send the configuration objects from the application to the agent or repository, the application needs to use the Console API.
When an agent is running in the repository configuration mode, configuration objects (such as a rulebase or schedule) updated on the agent are not permanent and the rulebase map can only be updated on a repository.The following steps illustrate one possible way that an application using the Console API and Configuration Object API can update a configuration object of an agent or repository.
3. Wait until the AgentMonitorEvent from the desire agent is received by examining the AgentInstance of the AgentMonitorEvent.
4.
5. Retrieve the configuration object from the RulebaseEngine or Repository microagent using the AgentManager.For convenience, the rest of this section lists the methods in RulebaseEngine and Repository microagent that are useful for retrieving and updating Rulebase, Schedule, and Rulebase Map. The complete list of methods can be found in the TIBCO Hawk Methods Reference.For details and code samples, refer to the Java sample descriptions in Appendix B, Sample Programs, and the sample Java files described there.For details on TIBHawkConsole, AgentMonitor, AgentMonitorEvent, AgentInstance, and other Console API classes, please refer to Chapter 2, Console API.
![]() |
Copyright © Cloud Software Group, Inc. All Rights Reserved |