Connector EventHandler
Overview
This EventHandler uses any Connector as an input event generator. The EventHandler
will call the Connector's getNext method to obtain the next entry from
the Connector. When a Connector reaches end of input it returns null. This EventHandler
will continue to call the Connector's input method even after the Connector returns null. For some
Connectors this may make sense whereas for
others it does not.
For example, using the FileSystem Connector
makes sense since the file read by the Connector may have data appended to it at
any time. Connectors selecting a finite set of entries will eventually run out
of entries and the EventHandler will continue forever waiting for new data. It
is up to the user and Connector to make sense.
Configuration
The port listener needs the following parameters:
Parameter |
Description |
class |
com.architech.switchboard.connectorSwitchboard |
pollInterval |
Number of seconds between each call to the Connector
after a NULL entry has been received from the Connector. |
Connector |
The Connector to use for input |
Objects/Properties/Attributes
The EventHandler sets the following event properties:
Property |
Description |
event.originator |
The EventHandler object. |
event.connector |
The Connector object used by this EventHandler |
The event object also contains any attribute returned by the Connector.
Downloads
Included in base product since 4.0.3
See Also
EventHandler
Overview
|