The TIBCO StreamBase® Acknowledge Adapter for TIBCO FTL® allows a StreamBase application to explicitly acknowledge received FTL messages. The adapter is embedded in the StreamBase application and has one input port and one output port. The input port is used to receive the message ID of the message to acknowledge. The output port emits status tuples.
The adapter is configured through properties set in its Adapter Properties view in StreamBase Studio, described below.
This adapter requires access to the JAR file that implements the TIBCO FTL Java API on your system, and any files referenced
by that JAR file.
The adapter has been tested with FTL version 3.1, though it will likely work with newer FTL API versions as well. To make
the TIBCO FTL Java API
available to the adapter, copy
tibftl.jar file, in turn, relies on various native libraries, such as
tibftljni.dll on Windows
tibftljni.so on Linux. As with
tibftl.jar, these native libraries are supplied as part of your TIBCO
FTL installation and are not shipped with StreamBase. Make sure these files are locatable by the FTL JAR file
by placing their parent directory on the PATH.
|Log Level||Controls the level of verbosity the adapter uses to send notifications to the console. This setting can be higher than the containing application's log level. If set lower, the system log level is used. Available values, in increasing order of verbosity, are: OFF, ERROR, WARN, INFO, DEBUG, TRACE, and ALL.|
|FTL Library Log Level||The log level used by the FTL library. Multiple FTL input and output adapter instances share the most verbose level configured in any adapter.|
There are two ways to explicitly acknowledge a received message from FTL: Either use the TIBCO FTL Subscribing Input Adapter's
acknowledge command or use an instance of the Acknowledge adapter. In either case, a string field named
MessageID is expected to contain a valid message ID value. Upon receiving the command the message will be acknowledged and a status
tuple will be emitted to indicate success or failure.
The TIBCO FTL Acknowledge Adapter's ports are used as follows:
Control: This input port receives tuples used to acknowledge a given message. The Control port is expected to contain one string field named
AckStatus: This output port emits status, information, and error tuples. The Status port has the following schema:
Status, string: Describes the type of event that occurred.
Time, timestamp: The time at which this status occurred.
info, list<tuple>: A list of name / value pair tuples containing any additional information for the event.
Add an instance of the adapter to a new StreamBase application as follows:
In StreamBase Studio, create a project, and create an EventFlow application file to host the adapter.
Drag an instance of the TIBCO FTL Acknowledge Adapter from the Operators and Adapter drawer in the Palette view to the canvas.
Connect an input streams to the adapter's input port and an output stream to its output port.
Configure the schema of Control input stream with a string field named
The TIBCO FTL Acknowledge adapter uses typecheck messages to help you configure the adapter in your StreamBase application. In particular, the adapter generates typecheck errors when a required property has not been specified or the control input schema is missing a required field or it has the wrong data type.
The adapter generates messages on the status port during runtime under various conditions, including:
An FTL message is acknowledged or the operation has failed.
The adapter is suspended or resumed.
When suspended, the TIBCO FTL Acknowledge Adapter stops processing acknowledge commands.
When resumed, the adapter resumes processing acknowledge commands.