Adapter-Specific Settings
The adapter-specific settings apply to all the polling notifications in your adapter.
Within the configuration directory of the adapter's package, the clusterProperties.cnf file provides settings that specify a callback scheme, and place limits on which coordination modes can be applied to notification nodes for the adapter. The clusterProperties.cnf file is an XML file in which settings may be provided globally for the adapter or specifically to a particular notification template.
The following example includes all of the major constructs of a clusterProperties.cnf file.
<?xml version="1.0"?>
<clusterProps>
<pollingNotifications>
<callbackScheme>1</callbackScheme>
<runtimeModeLimit>distribute</runtimeModeLimit>
<template className="com.wm.adapter.wmarttest.notification.LatchedPollingNot
ification">
<callbackScheme>1</callbackScheme>
<runtimeModeLimit>standby</runtimeModeLimit>
</template>
</pollingNotifications>
<listenerNotifications>
<callbackScheme>1</callbackScheme>
</listenerNotifications>
<listeners>
<runtimeModeLimit>standby</runtimeModeLimit>
</listeners>
</clusterProps>
The <callbackScheme> setting controls how callback coordination is performed, while <runtimeModeLimit> constrains the coordination mode setting that can be set for a notification node. Values for callbackScheme Setting for Polling Notifications is listed in the following table.
When callbackScheme is set to... | The following Coordination Modes are set: |
Enable/Disable | Startup/Shutdown | Resume/Suspend |
0 | No coordination | No coordination | No coordination |
1(default) | Coordinated | No coordination | No coordination |
2 | No coordination | Coordinated | No coordination |
3 | Coordinated | Coordinated | No coordination |
4 | No coordination | No coordination | Coordinated |
5 | No coordination | Coordinated | Coordinated |
6 | Coordinated | No coordination | Coordinated |
7 | Coordinated | Coordinated | Coordinated |