public class JsonKafkaOutput extends AbstractKafkaOutput
AbstractKafkaOutput.Topic
boltProducer, exitOnFailure, producerProperties, settings
Constructor and Description |
---|
JsonKafkaOutput(org.thales.punch.libraries.storm.api.NodeSettings boltConfig,
Properties producerProperties) |
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 JsonKafkaOutput(org.thales.punch.libraries.storm.api.NodeSettings boltConfig, Properties producerProperties) throws org.thales.punch.exceptions.ConfigurationException
org.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 © 2022. All rights reserved.