backtype.storm.topology.base
Class BaseRichBolt

java.lang.Object
  extended by backtype.storm.topology.base.BaseComponent
      extended by backtype.storm.topology.base.BaseRichBolt
All Implemented Interfaces:
IBolt, IComponent, IRichBolt, java.io.Serializable
Direct Known Subclasses:
JoinResult, ReturnResults, TestAggregatesCounter, TestGlobalCount, TestPlannerBolt

public abstract class BaseRichBolt
extends BaseComponent
implements IRichBolt

See Also:
Serialized Form

Constructor Summary
BaseRichBolt()
           
 
Method Summary
 void cleanup()
          Called when an IBolt is going to be shutdown.
 
Methods inherited from class backtype.storm.topology.base.BaseComponent
getComponentConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface backtype.storm.task.IBolt
execute, prepare
 
Methods inherited from interface backtype.storm.topology.IComponent
declareOutputFields, getComponentConfiguration
 

Constructor Detail

BaseRichBolt

public BaseRichBolt()
Method Detail

cleanup

public void cleanup()
Description copied from interface: IBolt
Called when an IBolt is going to be shutdown. There is no guarentee that cleanup will be called, because the supervisor kill -9's worker processes on the cluster.

The one context where cleanup is guaranteed to be called is when a topology is killed when running Storm in local mode.

Specified by:
cleanup in interface IBolt