Working with Adapters

Consider these pre-planning and configuration steps when using Event Stream Processor-supplied and custom adapters.

Overview of typical tasks to perform before attaching an input adapter to the Server, as well as an introduction to the CCL ATTACH ADAPTER statement:

Note: Unmanaged adapters are not referenced in the CCL ATTACH ADAPTER statement, and need to be configured, started, and stopped independently.

Detailed information on configuring individual adapters, datatype mapping, and schema discovery are contained in the Adapters Guide. You can also refer to the CCL queries, ATTACH ADAPTER statement, CREATE SCHEMA statement, and Parameters topics in the Programmers Guide.

Note: When specifying paths, use forward slashes for both Windows and UNIX. If you use back slashes in a CCL file, you will receive an error 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 the Server.
  2. Choose an input adapter for your task.
    If the datasource uses datatypes that are not supported by the Server, the Server maps the data to an accepted datatype. Review the associated mapping description for your adapter in the Adapters Guide.
  3. Configure your adapter as required.
  4. Create a stream or window and use the CREATE SCHEMA statement to define the structure for incoming data.
  5. Use the ATTACH ADAPTER statement to attach your adapter to the Server stream or window, and set 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. Run your data queries and perform analysis.
  7. Publish your results.