Interface ITaskHook

  • All Known Implementing Classes:
    BaseTaskHook

    public interface ITaskHook
    • Method Detail

      • prepare

        void prepare​(Map<String,​Object> conf,
                     TopologyContext context)
        Called after the spout/bolt's open/prepare method is called conf is the Config thats passed to the topology
      • cleanup

        void cleanup()
        Called just before the spout/bolt's cleanup method is called.
      • emit

        void emit​(EmitInfo info)
        Called everytime a tuple is emitted in spout/bolt
      • spoutAck

        void spoutAck​(SpoutAckInfo info)
        Called in spout everytime a tuple gets acked
      • spoutFail

        void spoutFail​(SpoutFailInfo info)
        Called in spout everytime a tuple gets failed
      • boltExecute

        void boltExecute​(BoltExecuteInfo info)
        Called in bolt everytime a tuple gets executed
      • boltAck

        void boltAck​(BoltAckInfo info)
        Called in bolt everytime a tuple gets acked
      • boltFail

        void boltFail​(BoltFailInfo info)
        Called in bolt everytime a tuple gets failed