IO::Storm::Bolt - The base class for all IO::Storm Bolts.
version 0.13
version 0.06
Called immediately after the initial handshake with Storm and before the main run loop. A good place to initialize connections to data sources.
Process a single tuple of input. This should be overriden by subclasses
Emit a tuple to a stream.
:param tuple: the Tuple payload to send to Storm, should contain only JSON-serializable data. :type tuple: arrayref :param stream: the ID of the stream to emit this tuple to. Specify ``undef`` to emit to default stream. :type stream: scalar :param anchors: IDs of the tuples (or the <IO::Storm::Tuple> instances) which the emitted tuples should be anchored to. If ``auto_anchor`` is set and you have not specified ``anchors``, ``anchors`` will be set to the incoming/most recent tuple ID(s). :type anchors: arrayref :param direct_task: the task to send the tuple to. :type direct_task: scalar
Acknowledge a tuple. Argument can be either a Tuple or an ID.
Fail a tuple. Argument can be either a Tuple or an ID.
Main run loop for all bolts.
Performs initial handshake with Storm and reads tuples handing them off to subclasses. Any exceptions are caught and logged back to Storm prior to the Perl process exiting.
Subclasses should **not** override this method.
Cory G Watson <gphat@cpan.org>
Dan Blanchard <dblanchard@ets.org>
This software is copyright (c) 2014 by Infinity Interactive, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
This software is copyright (c) 2014 by Educational Testing Service.
To install IO::Storm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IO::Storm
CPAN shell
perl -MCPAN -e shell install IO::Storm
For more information on module installation, please visit the detailed CPAN module installation guide.