Socket (as Client) CSV Output Adapter

Adapter type: dsv_sockout_out. The Socket (as Client) CSV Output adapter sends data in delimited format to the outgoing network.

The Socket (as Client) CSV Output adapter initiates the connection to an external datasource and sends out the data. The data does not require a header (accepted by esp_convert). If the file includes a header, it specifies the field names. The adapter retries a connection if the connection breaks.

If you use the CCL ATTACH ADAPTER statement to attach an adapter, you must supply the adapter type.

Property Label Property ID Type Description
Server host string (Required) Server host name. Default value is localhost.
Port port int (Required) Server port. If port is set to -1, the adapter reads from the Ephemeral Port File. Default value is 12345.
Prepend stream name, opcode prependStreamNameOpcode boolean (Optional) If true, the first two fields are interpreted as stream name and opcode respectively. The adapter discards messages with unmatched stream names. Default value is false.
Delimiter delimiter string (Advanced) Symbol used to separate the columns. Default value is a comma ( , ).
Has Header hasHeader boolean (Advanced) Determines whether the first line of the file contains the description of the fields. Default value is false.
Ephemeral Port File epFile filename (Advanced) File that contains the server port number, if port is -1. No default value.
Retry Period, s retryperiod uint (Advanced) Period for trying to re-establish an outgoing connection, in seconds. Default value is 1.
Include Base Content outputBase boolean (Optional) Starts by recording the initial contents of the stream, not just the updates. Default value is false.
Only Base Content onlyBase boolean (Advanced) Sends the initial contents of the stream once. Default value is false.
Timestamp Format timestampFormat string (Advanced) Format string for parsing timestamp values. Default value is %Y-%m-%dT%H:%M:%S.
Date Format dateFormat string (Advanced) Format string for parsing date values. Default value is %Y-%m-%dT%H:%M:%S.
Field Mapping permutation permutation

Mapping between Event Stream Processor and external fields, for example:

PropertySet

propertyset string

(Advanced) Specifies the name of the property set from the project configuration file. If you specify the same properties in the project configuration file and the ATTACH ADAPTER statement, the values in the property set override the values defined in the ATTACH ADAPTER statement. No default value.