Subscribe to data from an external datasource and use an input stream
or window to send the data to Event Stream Processor.
When specifying paths, use forward slashes for both Windows and UNIX. If
you use back slashes in a CCL file, an error displays because a back slash indicates a
control character.
- Assess the input data. Determine which sets or subsets of data you
want to pull into Event Stream Processor.
- Choose an input adapter suited for this task.
If the datasource uses datatypes that are not supported by the
ESP Server, the Server maps the data to an
accepted datatype. Review the associated mapping description for your adapter in the
Adapters Guide.
- Create an input stream or window.
- Use the CREATE SCHEMA statement to define the structure for
incoming data within this stream or window.
- (Skip this step if using an unmanaged adapter) Use the ATTACH ADAPTER statement to attach your adapter to the newly created
stream or window, and specify values for the adapter properties.
To declare default parameters for your adapter properties, use the
DECLARE block and
parameters qualifier to define default parameter values before you
attach your adapter. Once you create the
ATTACH
ADAPTER statement, you can set the adapter properties to the parameter
values you declared.
Note: You can bind declared parameters to a new
value only when a module or project is loaded.
- Start the ESP project. If you are using an
unmanaged adapter, start the adapter manually.
Next
For detailed information on configuring individual
Event Stream Processor-supplied adapters, datatype mappings, and
schema discovery, see the Adapters Guide. For detailed information on CCL
queries and statements, such as the ATTACH ADAPTER,CREATE
SCHEMA, and DECLARE statements, see the
Programmers Reference Guide.