Determines whether this connector 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 this connector is capable of polling. This return value depends on the type of connector:
Connector process type | Return value |
---|---|
Master (serial processing) | true |
Master (parallel processing) | false |
Slave (request) | false |
Slave (polling) | true |
Exceptions
None.
Notes
If a connector is configured to run in the single-process mode (with ParallelProcessDegree set 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 (with ParallelProcessDegree greater than 1), it consists of several processes, each with a particular purpose, as shown in Table 118.
Table 118. Purposes of processes of a parallel connector
Connector process | 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-agent process 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.