public class PulsarSpout
extends backtype.storm.topology.base.BaseRichSpout
implements backtype.storm.metric.api.IMetric
| Modifier and Type | Class and Description |
|---|---|
class |
PulsarSpout.MessageRetries |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONSUMER_RATE |
static String |
CONSUMER_THROUGHPUT_BYTES |
static String |
NO_OF_MESSAGES_EMITTED |
static String |
NO_OF_MESSAGES_RECEIVED |
static String |
NO_OF_PENDING_ACKS |
static String |
NO_OF_PENDING_FAILED_MESSAGES |
| Constructor and Description |
|---|
PulsarSpout(PulsarSpoutConfiguration pulsarSpoutConf,
ClientConfiguration clientConf) |
PulsarSpout(PulsarSpoutConfiguration pulsarSpoutConf,
ClientConfiguration clientConf,
ConsumerConfiguration consumerConf) |
| Modifier and Type | Method and Description |
|---|---|
void |
ack(Object msgId) |
void |
close() |
void |
declareOutputFields(backtype.storm.topology.OutputFieldsDeclarer declarer) |
void |
fail(Object msgId) |
Object |
getValueAndReset() |
void |
nextTuple()
Emits a tuple received from the Pulsar consumer unless there are any failed messages
|
void |
open(Map conf,
backtype.storm.task.TopologyContext context,
backtype.storm.spout.SpoutOutputCollector collector) |
public static final String NO_OF_PENDING_FAILED_MESSAGES
public static final String NO_OF_MESSAGES_RECEIVED
public static final String NO_OF_MESSAGES_EMITTED
public static final String NO_OF_PENDING_ACKS
public static final String CONSUMER_RATE
public static final String CONSUMER_THROUGHPUT_BYTES
public PulsarSpout(PulsarSpoutConfiguration pulsarSpoutConf, ClientConfiguration clientConf)
public PulsarSpout(PulsarSpoutConfiguration pulsarSpoutConf, ClientConfiguration clientConf, ConsumerConfiguration consumerConf)
public void close()
close in interface backtype.storm.spout.ISpoutclose in class backtype.storm.topology.base.BaseRichSpoutpublic void ack(Object msgId)
ack in interface backtype.storm.spout.ISpoutack in class backtype.storm.topology.base.BaseRichSpoutpublic void fail(Object msgId)
fail in interface backtype.storm.spout.ISpoutfail in class backtype.storm.topology.base.BaseRichSpoutpublic void nextTuple()
nextTuple in interface backtype.storm.spout.ISpoutpublic void open(Map conf, backtype.storm.task.TopologyContext context, backtype.storm.spout.SpoutOutputCollector collector)
open in interface backtype.storm.spout.ISpoutpublic void declareOutputFields(backtype.storm.topology.OutputFieldsDeclarer declarer)
declareOutputFields in interface backtype.storm.topology.IComponentpublic Object getValueAndReset()
getValueAndReset in interface backtype.storm.metric.api.IMetricCopyright © 2017 Apache Software Foundation. All rights reserved.