Package org.apache.storm.topology
Class IRichSpoutDelegate
- java.lang.Object
-
- org.apache.storm.topology.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,IRichBoltandIRichSpoutare the main interfaces to use to implement components of the topology.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IRichSpoutDelegate(IRichSpout delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidack(Object msgId)voidactivate()voidclose()voiddeactivate()voiddeclareOutputFields(org.apache.heron.api.topology.OutputFieldsDeclarer declarer)voidfail(Object msgId)Map<String,Object>getComponentConfiguration()voidnextTuple()voidopen(Map conf, org.apache.heron.api.topology.TopologyContext context, org.apache.heron.api.spout.SpoutOutputCollector collector)voidupdate(org.apache.heron.api.topology.TopologyContext topologyContext)
-
-
-
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:
openin interfaceorg.apache.heron.api.spout.ISpout
-
close
public void close()
- Specified by:
closein interfaceorg.apache.heron.api.spout.ISpout
-
activate
public void activate()
- Specified by:
activatein interfaceorg.apache.heron.api.spout.ISpout
-
deactivate
public void deactivate()
- Specified by:
deactivatein interfaceorg.apache.heron.api.spout.ISpout
-
nextTuple
public void nextTuple()
- Specified by:
nextTuplein interfaceorg.apache.heron.api.spout.ISpout
-
ack
public void ack(Object msgId)
- Specified by:
ackin interfaceorg.apache.heron.api.spout.ISpout
-
fail
public void fail(Object msgId)
- Specified by:
failin interfaceorg.apache.heron.api.spout.ISpout
-
declareOutputFields
public void declareOutputFields(org.apache.heron.api.topology.OutputFieldsDeclarer declarer)
- Specified by:
declareOutputFieldsin interfaceorg.apache.heron.api.topology.IComponent
-
getComponentConfiguration
public Map<String,Object> getComponentConfiguration()
- Specified by:
getComponentConfigurationin interfaceorg.apache.heron.api.topology.IComponent
-
update
public void update(org.apache.heron.api.topology.TopologyContext topologyContext)
- Specified by:
updatein interfaceorg.apache.heron.api.topology.IUpdatable
-
-