public abstract class AbstractLineSpout extends Object implements org.apache.storm.topology.IRichSpout
line
and should be of type String
.Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_LINE |
protected org.apache.storm.spout.SpoutOutputCollector |
collector |
Constructor and Description |
---|
AbstractLineSpout() |
Modifier and Type | Method and Description |
---|---|
void |
ack(Object msgId) |
void |
activate() |
void |
close() |
void |
deactivate() |
void |
declareOutputFields(org.apache.storm.topology.OutputFieldsDeclarer declarer) |
void |
fail(Object msgId) |
Map<String,Object> |
getComponentConfiguration() |
void |
open(Map conf,
org.apache.storm.task.TopologyContext context,
org.apache.storm.spout.SpoutOutputCollector collector) |
public static final String ATTRIBUTE_LINE
protected org.apache.storm.spout.SpoutOutputCollector collector
public void open(Map conf, org.apache.storm.task.TopologyContext context, org.apache.storm.spout.SpoutOutputCollector collector)
open
in interface org.apache.storm.spout.ISpout
public void close()
close
in interface org.apache.storm.spout.ISpout
public void activate()
activate
in interface org.apache.storm.spout.ISpout
public void deactivate()
deactivate
in interface org.apache.storm.spout.ISpout
public void ack(Object msgId)
ack
in interface org.apache.storm.spout.ISpout
public void fail(Object msgId)
fail
in interface org.apache.storm.spout.ISpout
public void declareOutputFields(org.apache.storm.topology.OutputFieldsDeclarer declarer)
declareOutputFields
in interface org.apache.storm.topology.IComponent
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.