public class GenericBolt extends BaseRichBolt
A generic org.apache.storm.topology.IRichBolt implementation for testing/debugging the Storm JMS Spout and example topologies.
For debugging purposes, set the log level of the org.apache.storm.contrib.jms package to DEBUG for debugging output.
| Constructor and Description |
|---|
GenericBolt(String name,
boolean autoAck,
boolean autoAnchor) |
GenericBolt(String name,
boolean autoAck,
boolean autoAnchor,
Fields declaredFields)
Constructs a new
GenericBolt instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
void |
declareOutputFields(OutputFieldsDeclarer declarer) |
void |
execute(Tuple input) |
boolean |
isAutoAck() |
void |
prepare(Map stormConf,
TopologyContext context,
OutputCollector collector) |
void |
setAutoAck(boolean autoAck) |
getComponentConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentConfigurationpublic GenericBolt(String name, boolean autoAck, boolean autoAnchor, Fields declaredFields)
Constructs a new GenericBolt instance.
name - The name of the bolt (used in DEBUG logging)autoAck - Whether or not this bolt should automatically acknowledge received tuples.autoAnchor - Whether or not this bolt should automatically anchor to received tuples.declaredFields - The fields this bolt declares as output.public GenericBolt(String name, boolean autoAck, boolean autoAnchor)
public void prepare(Map stormConf, TopologyContext context, OutputCollector collector)
public void execute(Tuple input)
public void cleanup()
cleanup in interface IBoltcleanup in class BaseRichBoltpublic void declareOutputFields(OutputFieldsDeclarer declarer)
public boolean isAutoAck()
public void setAutoAck(boolean autoAck)
Copyright © 2018 The Apache Software Foundation. All Rights Reserved.