Apama 10.3.1 | Apama Documentation | Connecting Apama Applications to External Components | Standard IAF Plug-ins | Codec IAF Plug-ins | The Filter codec IAF plug-in
 
The Filter codec IAF plug-in
 
Filter codec transport-related properties
Specifying filters for the Filter codec
Examples of filter specifications
The Apama Filter codec plug-ins filter normalized event fields. You can use the Filter codec to:
*Route upstream events to particular transports
*Remove particular fields from upstream and/or downstream events
To use the Filter codec, the FilterCodec or JFilterCodec library must be available to the IAF at runtime. These are the filenames of the C++ and Java libraries that implements the plug-in.
In order to load this plug-in, the <codec> element in the adapter's configuration file needs to load either the FilterCodec or JFilterCodec library. Note that for the Java version, the full path to the plug-in's .jar file needs to be specified.
A configuration file for C/C++ uses this:
<codec name="FilterCodec" library="FilterCodec">
In a configuration file for Java:
<codec name="JFilterCodec"
   jarName="Apama_install_dir\lib\JFilterCodec.jar"            
className="com.apama.iaf.codec.filtercodec.JFilterCodec">
To configure the Filter codec, add the following to the <codecs> section of the IAF configuration file:
<codec name="FilterCodec" library="FilterCodec">
  <property name="transportFieldName" value="transport_field_name"/>
  <property name="filter_spec_1" value="filter_condition_1"/>
  <property name="filter_spec_2" value="filter_condition_2"/>
...
  <property name="filter_spec_n" value="filter_condition_n"/>
</codec>
Details for replacing the variables in the above codec section are in the topics below.

Copyright © 2013-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.