public class EventHubBolt extends BaseTickTupleAwareRichBolt
A bolt that writes event message to EventHub.
| Modifier and Type | Field and Description |
|---|---|
protected EventHubBoltConfig |
boltConfig |
protected OutputCollector |
collector |
protected com.microsoft.eventhubs.client.EventHubSender |
sender |
| Constructor and Description |
|---|
EventHubBolt(EventHubBoltConfig config) |
EventHubBolt(String connectionString,
String entityPath) |
EventHubBolt(String userName,
String password,
String namespace,
String entityPath,
boolean partitionMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
declareOutputFields(OutputFieldsDeclarer declarer) |
void |
prepare(Map config,
TopologyContext context,
OutputCollector collector) |
protected void |
process(Tuple tuple) |
execute, onTickTuplecleanupgetComponentConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentConfigurationprotected OutputCollector collector
protected com.microsoft.eventhubs.client.EventHubSender sender
protected EventHubBoltConfig boltConfig
public EventHubBolt(String userName, String password, String namespace, String entityPath, boolean partitionMode)
public EventHubBolt(EventHubBoltConfig config)
public void prepare(Map config, TopologyContext context, OutputCollector collector)
protected void process(Tuple tuple)
process in class BaseTickTupleAwareRichBoltpublic void declareOutputFields(OutputFieldsDeclarer declarer)
Copyright © 2018 The Apache Software Foundation. All Rights Reserved.