public class UnreliableKestrelThriftSpout extends backtype.storm.topology.base.BaseRichSpout
KestrelThriftSpout
that is purposefully unreliable
and cuts other corners in an effort for improved speedsConstructor and Description |
---|
UnreliableKestrelThriftSpout(List<KestrelServerSpec> serverSpecs,
backtype.storm.spout.Scheme scheme,
String inputQueue) |
Modifier and Type | Method and Description |
---|---|
void |
ack(Object msgId) |
void |
close() |
void |
declareOutputFields(backtype.storm.topology.OutputFieldsDeclarer declarer) |
void |
fail(Object msgId) |
void |
nextTuple() |
void |
open(Map conf,
backtype.storm.task.TopologyContext context,
backtype.storm.spout.SpoutOutputCollector collector) |
void |
setAckQueue(String ackQueue)
The ackQueue holds statistics about acknowledgement time useful for
measuring topology throughput
|
public UnreliableKestrelThriftSpout(List<KestrelServerSpec> serverSpecs, backtype.storm.spout.Scheme scheme, String inputQueue)
serverSpecs
- servers to connect to in a round robin fasionscheme
- how items should be readinputQueue
- queue from which to readpublic void setAckQueue(String ackQueue)
ackQueue
- public void open(Map conf, backtype.storm.task.TopologyContext context, backtype.storm.spout.SpoutOutputCollector collector)
public void close()
close
in interface backtype.storm.spout.ISpout
close
in class backtype.storm.topology.base.BaseRichSpout
public void nextTuple()
public void declareOutputFields(backtype.storm.topology.OutputFieldsDeclarer declarer)
public void ack(Object msgId)
ack
in interface backtype.storm.spout.ISpout
ack
in class backtype.storm.topology.base.BaseRichSpout