Class BaseRichBolt

All Implemented Interfaces:
Serializable, IBolt, IComponent, IRichBolt
Direct Known Subclasses:
AbstractHdfsBolt, BaseTickTupleAwareRichBolt, DevNullBolt, ExclamationTopology.ExclamationBolt, ExclamationTopology.ExclamationBolt, GenericBolt, HdfsFileTopology.MyBolt, HdfsSpoutTopology.ConstBolt, HiveBolt, IdBolt, IdentityBolt, JoinResult, KafkaSpoutTestBolt, LoadBolt, LookupWordCount.PrintWordTotalCountBolt, MultipleLoggerTopology.ExclamationLoggingBolt, ResourceAwareExampleTopology.ExclamationBolt, ReturnResults, RollingCountAggBolt, RollingCountBolt, SequenceFileTopology.MyBolt, SingleJoinBolt, SocketBolt, TestAggregatesCounter, TestEventOrderCheckBolt, TestGlobalCount, TestPlannerBolt, WhitelistWordCount.PrintWordTotalCountBolt

public abstract class BaseRichBolt extends BaseComponent implements IRichBolt
See Also:
  • Constructor Details

    • BaseRichBolt

      public BaseRichBolt()
  • Method Details

    • cleanup

      public void cleanup()
      Description copied from interface: IBolt
      Called when an IBolt is going to be shutdown. Storm will make a best-effort attempt to call this if the worker shutdown is orderly. The Config.SUPERVISOR_WORKER_SHUTDOWN_SLEEP_SECS setting controls how long orderly shutdown is allowed to take. There is no guarantee that cleanup will be called if shutdown is not orderly, or if the shutdown exceeds the time limit.

      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