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 was tested
with FTL version 3.1, and is compatible with higher versions as well (such as 5.0 and
higher including 6.x). To make the TIBCO FTL Java API available to the adapter, you
must supply a maven dependency for it. The FTL sample comes with a launch config
which will install the
tibftl.jar into your local maven
tibftl.jar file, in turn, relies on various native
libraries, such as
tibftljni.dll on Windows and
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 to edit your
src/main/configurations/engine.conf and make changes to
reflect your current setup. Please see the FTL sample application for an example
This section describes the properties you can set for this adapter, using the various tabs of the Properties view in StreamBase Studio.
Name: Use this required field to specify or change the name of this instance of this component, which must be unique in the current EventFlow module. The name must contain only alphabetic characters, numbers, and underscores, and no hyphens or other special characters. The first character must be alphabetic or an underscore.
Adapter: A read-only field that shows the formal name of the adapter.
Class name: Shows the fully qualified class name that implements the functionality of this adapter. If you need to reference this class name elsewhere in your application, you can right-click this field and select Copy from the context menu to place the full class name in the system clipboard.
Start options: This field provides a link to the Cluster Aware tab, where you configure the conditions under which this adapter starts.
Enable Error Output Port: Select this check box to add an Error Port to this component. In the EventFlow canvas, the Error Port shows as a red output port, always the last port for the component. See Using Error Ports to learn about Error Ports.
Description: Optionally enter text to briefly describe the component's purpose and function. In the EventFlow Editor canvas, you can see the description by pressing Ctrl while the component's tooltip is displayed.
|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.|
|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.|
Use the settings in this tab to allow this operator or adapter to start and stop based on conditions that occur at runtime in a cluster with more than one node. During initial development of the fragment that contains this operator or adapter, and for maximum compatibility with TIBCO Streaming releases before 10.5.0, leave the Cluster start policy control in its default setting, Start with module.
Cluster awareness is an advanced topic that requires an understanding of StreamBase Runtime architecture features, including clusters, quorums, availability zones, and partitions. See Cluster Awareness Tab Settings on the Using Cluster Awareness page for instructions on configuring this tab.
Use the Concurrency tab to specify parallel regions for this instance of this component, or multiplicity options, or both. The Concurrency tab settings are described in Concurrency Options, and dispatch styles are described in Dispatch Styles.
Concurrency settings are not suitable for every application, and using these settings requires a thorough analysis of your application. For details, see Execution Order and Concurrency, which includes important guidelines for using the concurrency options.
There are two ways to explicitly acknowledge a received message from FTL: Either use
the TIBCO FTL Subscribing Input Adapter's
command or use an instance of the Acknowledge adapter. In either case, a string field
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.