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,IRichBolt
andIRichSpout
are 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 void
ack(Object msgId)
void
activate()
void
close()
void
deactivate()
void
declareOutputFields(org.apache.heron.api.topology.OutputFieldsDeclarer declarer)
void
fail(Object msgId)
Map<String,Object>
getComponentConfiguration()
void
nextTuple()
void
open(Map conf, org.apache.heron.api.topology.TopologyContext context, org.apache.heron.api.spout.SpoutOutputCollector collector)
void
update(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:
open
in interfaceorg.apache.heron.api.spout.ISpout
-
close
public void close()
- Specified by:
close
in interfaceorg.apache.heron.api.spout.ISpout
-
activate
public void activate()
- Specified by:
activate
in interfaceorg.apache.heron.api.spout.ISpout
-
deactivate
public void deactivate()
- Specified by:
deactivate
in interfaceorg.apache.heron.api.spout.ISpout
-
nextTuple
public void nextTuple()
- Specified by:
nextTuple
in interfaceorg.apache.heron.api.spout.ISpout
-
ack
public void ack(Object msgId)
- Specified by:
ack
in interfaceorg.apache.heron.api.spout.ISpout
-
fail
public void fail(Object msgId)
- Specified by:
fail
in interfaceorg.apache.heron.api.spout.ISpout
-
declareOutputFields
public void declareOutputFields(org.apache.heron.api.topology.OutputFieldsDeclarer declarer)
- Specified by:
declareOutputFields
in interfaceorg.apache.heron.api.topology.IComponent
-
getComponentConfiguration
public Map<String,Object> getComponentConfiguration()
- Specified by:
getComponentConfiguration
in interfaceorg.apache.heron.api.topology.IComponent
-
update
public void update(org.apache.heron.api.topology.TopologyContext topologyContext)
- Specified by:
update
in interfaceorg.apache.heron.api.topology.IUpdatable
-
-