Class IRichSpoutDelegate

  • All Implemented Interfaces:
    Serializable, org.apache.heron.api.spout.IRichSpout, org.apache.heron.api.spout.ISpout, org.apache.heron.api.topology.IComponent, org.apache.heron.api.topology.IUpdatable

    public class IRichSpoutDelegate
    extends Object
    implements org.apache.heron.api.spout.IRichSpout, org.apache.heron.api.topology.IUpdatable
    When writing topologies using Java, IRichBolt and IRichSpout are the main interfaces to use to implement components of the topology.
    See Also:
    Serialized Form
    • Constructor Detail

      • IRichSpoutDelegate

        public IRichSpoutDelegate​(IRichSpout delegate)
    • Method Detail

      • open

        public void open​(Map conf,
                         org.apache.heron.api.topology.TopologyContext context,
                         org.apache.heron.api.spout.SpoutOutputCollector collector)
        Specified by:
        open in interface org.apache.heron.api.spout.ISpout
      • close

        public void close()
        Specified by:
        close in interface org.apache.heron.api.spout.ISpout
      • activate

        public void activate()
        Specified by:
        activate in interface org.apache.heron.api.spout.ISpout
      • deactivate

        public void deactivate()
        Specified by:
        deactivate in interface org.apache.heron.api.spout.ISpout
      • nextTuple

        public void nextTuple()
        Specified by:
        nextTuple in interface org.apache.heron.api.spout.ISpout
      • ack

        public void ack​(Object msgId)
        Specified by:
        ack in interface org.apache.heron.api.spout.ISpout
      • fail

        public void fail​(Object msgId)
        Specified by:
        fail in interface org.apache.heron.api.spout.ISpout
      • declareOutputFields

        public void declareOutputFields​(org.apache.heron.api.topology.OutputFieldsDeclarer declarer)
        Specified by:
        declareOutputFields in interface org.apache.heron.api.topology.IComponent
      • getComponentConfiguration

        public Map<String,​Object> getComponentConfiguration()
        Specified by:
        getComponentConfiguration in interface org.apache.heron.api.topology.IComponent
      • update

        public void update​(org.apache.heron.api.topology.TopologyContext topologyContext)
        Specified by:
        update in interface org.apache.heron.api.topology.IUpdatable