The multilang protocol is extremely trivial in nature. It consists of JSON-based exchanges over STDIN
and STDOUT
. All exchanges are delimited via a single line containing the word end
, which isn't JSON-encoded. In this recipe, we will only implement the bolt adaptor; however, adding the spout functionality is trivial from this base.
The bolt can receive new tuple messages that contain an ID, some component metadata, and the actual tuple as a JSON value containing a JSON array of values. The bolt then sends ack, fail, emit, or log messages back via STDOUT
.
Qt is an open source C++ framework, originally developed by Trolltech as a cross-platform GUI framework. Qt has enjoyed impressive longevity in the open source communities, providing a wide range of cross-platform C++ capability. This functionality extends far beyond GUI concerns into base container classes and Threads; it even augments the C++ language with some missing elements, such as reflection...