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


Appendix B Sample Programs : Rulebase Map Samples

Rulebase Map Samples
The example Java source files in examples/rbmap_api show how to use the Rulebase Map-related classes of the Configuration Object API.
For details of the code, refer to the Java source files.
RBMapCreateAndSave.java
This sample shows how to create a simple Rulebase Map and save it to a file. It also shows the use of the method getAgentRulebases() to retrieve rulebases maps to an agent in the Rulebase Map.
Based on the rulebase map, getAgentRulebases() returns a list of rulebases that an agent should load during startup if the agent is running in the repository configuration mode. It does not return a rulebase map.
RBMapUseCommand.java
This sample extends RBMapCreateAndSave to include an external command that generates a list of rulebases for an agent.
This example uses RBMapUseCommand.exe and will run on Microsoft Windows only.
RBMapUseCommand.java
This sample demonstrates how an application can get and set a Rulebase Map dynamically on a repository using the Configuration Object API and Console API.
The sample performs the following steps:
1.
2.
3.

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