public abstract class AbstractJdbcBolt extends BaseRichBolt
Modifier and Type | Field and Description |
---|---|
protected OutputCollector |
collector |
protected String |
configKey |
protected ConnectionProvider |
connectionProvider |
protected JdbcClient |
jdbcClient |
protected Integer |
queryTimeoutSecs |
Constructor and Description |
---|
AbstractJdbcBolt(ConnectionProvider connectionProvider) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
void |
prepare(Map map,
TopologyContext topologyContext,
OutputCollector collector) |
getComponentConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
declareOutputFields, getComponentConfiguration
protected OutputCollector collector
protected transient JdbcClient jdbcClient
protected String configKey
protected Integer queryTimeoutSecs
protected ConnectionProvider connectionProvider
public AbstractJdbcBolt(ConnectionProvider connectionProvider)
public void prepare(Map map, TopologyContext topologyContext, OutputCollector collector)
public void cleanup()
cleanup
in interface IBolt
cleanup
in class BaseRichBolt
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.