Subscribing to Data with Input Adapters

Attach an input adapter to the ESP Server using an ATTACH ADAPTER statement and subscribe to data from an external datasource. If you wish to configure, start, and stop an adapter independently of the ESP Server (known as an unmanaged adapter), do not reference the adapter in the ATTACH ADAPTER statement.

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.

  1. Assess the input data. Determine which sets or subsets of data you want to pull into Event Stream Processor.
  2. 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.
  3. Create an input stream or window.
  4. Use the CREATE SCHEMA statement to define the structure for incoming data within this stream or window.
  5. (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.
  6. 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.