Class ITaskHookDelegate

  • All Implemented Interfaces:
    org.apache.heron.api.hooks.ITaskHook

    public class ITaskHookDelegate
    extends Object
    implements org.apache.heron.api.hooks.ITaskHook
    There would be types of task hooks inside ITaskHookDelegate: 1. task hook's classes specified in config statically. The task hooks' objects would be instantiated by using reflection and added into the list of ITaskHook when the method prepare(Map conf, org.apache.heron.api.topology.TopologyContext context) is invoked. 2. task hook added dynamically by invoking addHook(ITaskHook)
    • Constructor Detail

      • ITaskHookDelegate

        public ITaskHookDelegate()
    • Method Detail

      • addHook

        public void addHook​(ITaskHook hook)
      • getConf

        public Map getConf()
      • prepare

        public void prepare​(Map<String,​Object> newConf,
                            org.apache.heron.api.topology.TopologyContext context)
        Specified by:
        prepare in interface org.apache.heron.api.hooks.ITaskHook
      • cleanup

        public void cleanup()
        Specified by:
        cleanup in interface org.apache.heron.api.hooks.ITaskHook
      • emit

        public void emit​(org.apache.heron.api.hooks.info.EmitInfo info)
        Specified by:
        emit in interface org.apache.heron.api.hooks.ITaskHook
      • spoutAck

        public void spoutAck​(org.apache.heron.api.hooks.info.SpoutAckInfo info)
        Specified by:
        spoutAck in interface org.apache.heron.api.hooks.ITaskHook
      • spoutFail

        public void spoutFail​(org.apache.heron.api.hooks.info.SpoutFailInfo info)
        Specified by:
        spoutFail in interface org.apache.heron.api.hooks.ITaskHook
      • boltAck

        public void boltAck​(org.apache.heron.api.hooks.info.BoltAckInfo info)
        Specified by:
        boltAck in interface org.apache.heron.api.hooks.ITaskHook
      • boltFail

        public void boltFail​(org.apache.heron.api.hooks.info.BoltFailInfo info)
        Specified by:
        boltFail in interface org.apache.heron.api.hooks.ITaskHook
      • boltExecute

        public void boltExecute​(org.apache.heron.api.hooks.info.BoltExecuteInfo info)
        Specified by:
        boltExecute in interface org.apache.heron.api.hooks.ITaskHook