This section describes the typical behaviour of adapters and their interaction with the Perl API interface.
A typical adapter performs the following tasks:
Acquiring an a URI that will uniquely identify a specific stream and telling the communication layer provided by Sybase CEP how to find the stream.
Opening a connection to the stream.
Writing the desired data. Typically the write operation is in a loop; the adapter will keep sending multiple rows of data.
Closing the connection.
When using the Perl SDK, the URI of the data stream is typically passed to the Perl program as a command-line parameter. To find the URI of an active stream, look at the stream properties page in Sybase CEP Studio. Right-click on the stream, then choose "properties", and read the stream's URI.
When using the Perl SDK, there is no explicit call to close the connection. The connection is closed when you destroy the C8::Subscriber or C8::Publisher object that has the connection.