public abstract class AbstractMongoBolt extends BaseRichBolt
Modifier and Type | Field and Description |
---|---|
protected OutputCollector |
collector |
protected MongoDBClient |
mongoClient |
Constructor and Description |
---|
AbstractMongoBolt(String url,
String collectionName) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
void |
prepare(Map stormConf,
TopologyContext context,
OutputCollector collector) |
getComponentConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
declareOutputFields, getComponentConfiguration
protected OutputCollector collector
protected MongoDBClient mongoClient
public void prepare(Map stormConf, TopologyContext context, OutputCollector collector)
public void cleanup()
cleanup
in interface IBolt
cleanup
in class BaseRichBolt
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.