Class BaseTaskHook

    • Constructor Detail

      • BaseTaskHook

        public BaseTaskHook()
    • Method Detail

      • prepare

        public void prepare​(Map<String,​Object> conf,
                            TopologyContext context)
        Description copied from interface: ITaskHook
        Called after the spout/bolt's open/prepare method is called conf is the Config thats passed to the topology
        Specified by:
        prepare in interface ITaskHook
      • cleanup

        public void cleanup()
        Description copied from interface: ITaskHook
        Called just before the spout/bolt's cleanup method is called.
        Specified by:
        cleanup in interface ITaskHook
      • emit

        public void emit​(EmitInfo info)
        Description copied from interface: ITaskHook
        Called everytime a tuple is emitted in spout/bolt
        Specified by:
        emit in interface ITaskHook
      • spoutAck

        public void spoutAck​(SpoutAckInfo info)
        Description copied from interface: ITaskHook
        Called in spout everytime a tuple gets acked
        Specified by:
        spoutAck in interface ITaskHook
      • spoutFail

        public void spoutFail​(SpoutFailInfo info)
        Description copied from interface: ITaskHook
        Called in spout everytime a tuple gets failed
        Specified by:
        spoutFail in interface ITaskHook
      • boltAck

        public void boltAck​(BoltAckInfo info)
        Description copied from interface: ITaskHook
        Called in bolt everytime a tuple gets acked
        Specified by:
        boltAck in interface ITaskHook
      • boltFail

        public void boltFail​(BoltFailInfo info)
        Description copied from interface: ITaskHook
        Called in bolt everytime a tuple gets failed
        Specified by:
        boltFail in interface ITaskHook