This section describes the built-in input adapters and output adapters provided by Sybase CEP.
Below is a table that lists the adapters and the adapter "types". You'll need to know the adapter type if you use an ATTACH ADAPTER statement, for example,
ATTACH INPUT ADAPTER Adapter1 TYPE ReadFromCsvFileAdapterType ...
In the preceding statement, the type "ReadFromCsvFileAdapterType" is the adapter type for the Read From CSV File adapter.
This table also contains links to the first page describing each adapter.
Note that only in-process adapters can be attached with the ATTACH ADAPTER statement, so only in-process adapters have an adapter type. In the tables below, out-of-process adapters have "N / A" as their adapter type.
Adapter Data Type |
Read / Write |
Adapter Type (used in ATTACH ADAPTER statement) |
---|---|---|
Atom |
N / A |
AtomReaderAdapterType N / A |
Binary file |
ReadFromBinaryFileAdapterType WriteToBinaryFileAdapterType |
|
Comma-Separated Values (CSV) File |
ReadFromCsvFileAdapterType WriteToCsvFileAdapterType |
|
Comma-Separated Values (CSV) Socket |
ReadFromCsvSocketAdapterType WriteToCsvSocketAdapterType |
|
Database: Poll From Database (see also JDBC) |
ReadFromDBAdapterType WriteToDBAdapterType |
|
Database: Read From Database (see also Database, JDBC) |
N / A |
ReadFromDatabaseAdapterType N / A |
Email: Send Email Out (SMTP) |
N / A |
N / A OpenSourceEmailAdapterType |
Email: Java Send Mail |
N / A |
N / A N / A |
Ganglia |
N / A |
GangliaReaderAdapterType N / A |
Java Messaging Service (JMS) |
N / A |
N / A N / A |
JDBC (see also Database) |
N / A N / A |
|
Random Tuples Generator |
N / A |
RandomTuplesGeneratorAdapterType N / A |
RAP - The Trading Edition |
N / A |
PublishToRAPAdapterType N / A |
Regular Expression File |
Read from Regular Expression File N / A |
ReadFromRegexFileAdapterType N / A |
Regular Expression Socket |
Read from Regular Expression Socket N / A |
ReadFromRegexSocketAdapterType N / A |
RSS |
N / A |
RssReaderAdapterType N / A |
SNMP |
N / A |
SNMPGetAdapterType SNMPGetAdapterType |
SNMP V1 Trap |
N / A |
N / A SNMPV1SendTrapAdapterType |
SNMP V2 Trap |
N / A |
N / A SNMPV2SendTrapAdapterType |
Sybase RAP |
N / A |
N / A N / A |
Windows Event Logger |
N / A |
N / A N / A |
XML File |
ReadFromXmlFileAdapterType WriteToXmlFileAdapterType |
|
XML Socket |
ReadFromXmlSocketAdapterType WriteToXmlSocketAdapterType |
|
XML over HTTP |
N / A |
N / A WriteXmlOverHttpAdapterType |
Adapter |
Adapter Type (used in ATTACH ADAPTER statement) |
---|---|
AtomReaderAdapterType |
|
ReadFromBinaryFileAdapterType |
|
ReadFromCsvFileAdapterType |
|
ReadFromCsvSocketAdapterType |
|
ReadFromDBAdapterType |
|
ReadFromDatabaseAdapterType |
|
GangliaReaderAdapterType |
|
N / A |
|
N / A |
|
RandomTuplesGeneratorAdapterType |
|
PublishToRAPAdapterType |
|
ReadFromRegexFileAdapterType |
|
ReadFromRegexSocketAdapterType |
|
RssReaderAdapterType |
|
SNMPGetAdapterType |
|
N / A |
|
ReadFromXmlFileAdapterType |
Adapter |
Adapter Type (used in ATTACH ADAPTER statement) |
---|---|
WriteToBinaryFileAdapterType |
|
WriteToCsvFileAdapterType |
|
WriteToCsvSocketAdapterType |
|
WriteToDBAdapterType |
|
N / A |
|
OpenSourceEmailAdapterType |
|
N / A |
|
N / A |
|
SNMPGetAdapterType |
|
SNMPV1SendTrapAdapterType |
|
SNMPV2SendTrapAdapterType |
|
WriteToXmlFileAdapterType |
|
WriteXmlOverHttpAdapterType |
Almost all in-process adapters have properties that you can set. In Studio, these properties are displayed in, and can be edited in, the adapter's Properties View after you attach the adapter to a stream. Each of these properties is described in the adapter's .adl file. Inside the .adl file, each property is referred to as a "parameter". When discussing adapter properties, we sometimes use the words "property" and "parameter" interchangeably, but we will generally favor the term "property" since that is the term shown in Studio and in the ATTACH ADAPTER statement.
For example, in the Read From CSV File adapter, one of the properties that you must set is the name of the file to read from. For each adapter, we include a table that lists the properties for that table. In general, each table contains four columns:
Property Name (screen): This is the property name that you will see on-screen when you use Studio to edit an adapter's property values.
Property Name (Attach Adapter): This is the property name that you must use in ATTACH ADAPTER statements. For example, the "Filename" in the ATTACH ADAPTER statement below is xyz.csv.
ATTACH INPUT ADAPTER someName ... PROPERTIES Filename = 'xyz.csv' ...;
Type: The data type, such as STRING, INTEGER, and so on.
Description.
In many cases, the property's screen name and Attach Adapter name are the same.