Apama Documentation : Connecting Apama Applications to External Components : Using Standard Adapters : Using Adapter Plug-ins : The CSV codec plug-in : Multiple configurations and the CSV codec
Multiple configurations and the CSV codec
The CSV codec supports multiple configurations for interpreting separated data from different sources. A transport that is using the CSV codec can use the com.apama.iaf.plugin.ConfigurableCodec interface to set up different configurations for interpreting data from multiple sources that use different formats.
The transport can set a configuration by calling the following method on the codec:
public void addConfiguration(int sessionId,
                             NormalisedEvent configuration)
    throws java.io.IOException
The sessionId represents the ID value for this configuration.
The normalized event should contain the following key/value pair stored as strings that will be parsed in the codec:
Key
Value
separator
A string that contains the character to be used as the separator value, for example, "," or ";".
The transport can remove a configuration by calling the following method:
void removeConfiguration(int sessionId) throws java.io.IOException
The sessionId represents the ID value initially used to add the configuration with the addConfiguration() method.
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback