public class KestrelThriftSpout extends backtype.storm.topology.base.BaseRichSpout
Modifier and Type | Field and Description |
---|---|
static int |
BATCH_SIZE |
static long |
BLACKLIST_TIME_MS |
static org.apache.log4j.Logger |
LOG |
Constructor and Description |
---|
KestrelThriftSpout(List<String> hosts,
int port,
String queueName) |
KestrelThriftSpout(List<String> hosts,
int port,
String queueName,
backtype.storm.spout.Scheme scheme) |
KestrelThriftSpout(String hostname,
int port,
String queueName) |
KestrelThriftSpout(String hostname,
int port,
String queueName,
backtype.storm.spout.Scheme scheme) |
Modifier and Type | Method and Description |
---|---|
void |
ack(Object msgId) |
boolean |
bufferKestrelGet(int index) |
void |
close() |
void |
declareOutputFields(backtype.storm.topology.OutputFieldsDeclarer declarer) |
void |
fail(Object msgId) |
backtype.storm.tuple.Fields |
getOutputFields() |
void |
nextTuple() |
void |
open(Map conf,
backtype.storm.task.TopologyContext context,
backtype.storm.spout.SpoutOutputCollector collector) |
void |
tryEachKestrelUntilBufferFilled() |
public static org.apache.log4j.Logger LOG
public static final long BLACKLIST_TIME_MS
public static final int BATCH_SIZE
public KestrelThriftSpout(List<String> hosts, int port, String queueName, backtype.storm.spout.Scheme scheme)
public KestrelThriftSpout(String hostname, int port, String queueName, backtype.storm.spout.Scheme scheme)
public KestrelThriftSpout(String hostname, int port, String queueName)
public KestrelThriftSpout(List<String> hosts, int port, String queueName)
public backtype.storm.tuple.Fields getOutputFields()
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 boolean bufferKestrelGet(int index)
public void tryEachKestrelUntilBufferFilled()
public void nextTuple()
public void ack(Object msgId)
ack
in interface backtype.storm.spout.ISpout
ack
in class backtype.storm.topology.base.BaseRichSpout
public void fail(Object msgId)
fail
in interface backtype.storm.spout.ISpout
fail
in class backtype.storm.topology.base.BaseRichSpout
public void declareOutputFields(backtype.storm.topology.OutputFieldsDeclarer declarer)