public class StreamSpout
extends backtype.storm.topology.base.BaseRichSpout
| Modifier and Type | Field and Description |
|---|---|
protected String |
className |
protected String |
id |
(package private) static org.slf4j.Logger |
log |
protected backtype.storm.spout.SpoutOutputCollector |
output |
protected Variables |
parameters |
private static long |
serialVersionUID
The unique class ID
|
(package private) Stream |
stream |
protected String |
xml |
| Constructor and Description |
|---|
StreamSpout(String xml,
String id,
String className,
Map<String,String> params) |
| Modifier and Type | Method and Description |
|---|---|
protected Stream |
createStream() |
void |
declareOutputFields(backtype.storm.topology.OutputFieldsDeclarer declarer) |
void |
nextTuple() |
void |
open(Map conf,
backtype.storm.task.TopologyContext context,
backtype.storm.spout.SpoutOutputCollector collector) |
protected void |
sleep(long ms) |
ack, activate, close, deactivate, failprivate static final long serialVersionUID
static org.slf4j.Logger log
transient Stream stream
protected backtype.storm.spout.SpoutOutputCollector output
protected final String className
protected final Variables parameters
protected final String xml
protected final String id
public void open(Map conf, backtype.storm.task.TopologyContext context, backtype.storm.spout.SpoutOutputCollector collector)
ISpout.open(java.util.Map,
backtype.storm.task.TopologyContext,
backtype.storm.spout.SpoutOutputCollector)public void nextTuple()
ISpout.nextTuple()protected void sleep(long ms)
public void declareOutputFields(backtype.storm.topology.OutputFieldsDeclarer declarer)
backtype.storm.topology.IComponent#declareOutputFields(backtype.storm
.topology.OutputFieldsDeclarer)Copyright © 2013. All Rights Reserved.