Package org.apache.storm.topology
Class IRichBoltDelegate
- java.lang.Object
-
- org.apache.storm.topology.IRichBoltDelegate
-
- All Implemented Interfaces:
Serializable
,org.apache.heron.api.bolt.IBolt
,org.apache.heron.api.bolt.IRichBolt
,org.apache.heron.api.topology.IComponent
,org.apache.heron.api.topology.IUpdatable
public class IRichBoltDelegate extends Object implements org.apache.heron.api.bolt.IRichBolt, 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 IRichBoltDelegate(IRichBolt delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
void
declareOutputFields(org.apache.heron.api.topology.OutputFieldsDeclarer declarer)
void
execute(org.apache.heron.api.tuple.Tuple tuple)
Map<String,Object>
getComponentConfiguration()
void
prepare(Map<String,Object> conf, org.apache.heron.api.topology.TopologyContext context, org.apache.heron.api.bolt.OutputCollector collector)
void
update(org.apache.heron.api.topology.TopologyContext topologyContext)
-
-
-
Constructor Detail
-
IRichBoltDelegate
public IRichBoltDelegate(IRichBolt delegate)
-
-
Method Detail
-
prepare
public void prepare(Map<String,Object> conf, org.apache.heron.api.topology.TopologyContext context, org.apache.heron.api.bolt.OutputCollector collector)
- Specified by:
prepare
in interfaceorg.apache.heron.api.bolt.IBolt
-
cleanup
public void cleanup()
- Specified by:
cleanup
in interfaceorg.apache.heron.api.bolt.IBolt
-
execute
public void execute(org.apache.heron.api.tuple.Tuple tuple)
- Specified by:
execute
in interfaceorg.apache.heron.api.bolt.IBolt
-
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
-
-