public class LumberjackKafkaOutput extends AbstractKafkaOutput
AbstractKafkaOutput.Topic
boltProducer, exitOnFailure, producerProperties, settings
Constructor and Description |
---|
LumberjackKafkaOutput(org.thales.punch.libraries.storm.api.NodeSettings boltConfig,
Properties producerProperties)
The properties must only contain string.
|
Modifier and Type | Method and Description |
---|---|
void |
prepare(Map conf,
org.apache.storm.task.TopologyContext context,
org.apache.storm.task.OutputCollector collector) |
void |
process(org.apache.storm.tuple.Tuple tuple) |
declareOutputFields, getTargetTopic, sendKafkaMessage
public LumberjackKafkaOutput(org.thales.punch.libraries.storm.api.NodeSettings boltConfig, Properties producerProperties) throws org.thales.punch.exceptions.ConfigurationException
boltConfig
- the bolt configurationproducerProperties
- the bolt properties. You can include in these the native Kafka
producer propertiesorg.thales.punch.exceptions.ConfigurationException
public void prepare(Map conf, org.apache.storm.task.TopologyContext context, org.apache.storm.task.OutputCollector collector)
prepare
in interface org.apache.storm.task.IBolt
prepare
in class AbstractKafkaOutput
public void process(org.apache.storm.tuple.Tuple tuple)
process
in class org.thales.punch.libraries.storm.api.BaseProcessingNode
Copyright © 2023. All rights reserved.