Determines whether a connector-agent process is capable of polling.
WebSphere InterChange Server |
---|
This method is only valid when the integration broker is InterChange Server. |
Syntax
boolean isAgentCapableOfPolling();
Parameters
None.
Return values
A boolean value that indicates whether the connector is capable
of polling. This return value depends on the type of connector:
Connector type | Return value |
---|---|
Master (serial processing) | true |
Master (parallel processing) | false |
Slave (request) | false |
Slave (polling) | true |
Notes
If a connector is configured to run in a single-process mode (with ParallelProcessDegree equal to 1, which is the default), the isAgentCapableOfPolling() method always returns true because the same connector process performs both event polling and request processing.
If a connector is configured to run
in parallel-process mode (ParallelProcessDegree is greater than
1), it consists of several processes, each with a particular
purpose, as shown in Table 106.
Table 106. Purposes of processes of a parallel-process connector
Connector process type | Purpose of connector process |
---|---|
Connector-agent master process | Receives the incoming event from ICS and determines to which of the connector's slave processes to route the event |
Request-processing slave process | Handles requests for the connector |
Polling slave process | Handles polling and event delivery for the connector |
The return value of isAgentCapableOfPolling() depends on the purpose of the connector that makes the call to this method. For a parallel-process connector, this method returns true only when called from a connector whose purpose is to serve as a polling slave. For more information on parallel-process connectors, see the System Administration Guide in the IBM WebSphere InterChange Server documentation set.