Subscribe to data from an external datasource, and use an input
stream or window to send the data to Event Stream Processor.
Backslashes in CCL files generate errors, because in that context, they
are control characters.
- Assess the input data, determining which sets or subsets of data
you want to pull into Event Stream Processor.
- Choose an input adapter that is 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.
Use the
DECLARE block and
parameters qualifier to define default adapter 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 it manually.
Next
For detailed information about 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.