private final Object sourcesCollMonitor = new Object();
public MongoDBCrawlerDB(MongoDBConnection con, String dbName, String dbNameQueues, Logger logger) throws UnknownHostException {
this.con = con;
this.db = new MongoDBDatabase(this.con, dbName);
if (StringUtils.isNotBlank(dbNameQueues))
this.dbQueues = new MongoDBDatabase(this.con, dbNameQueues);
else
this.dbQueues = this.db;
this.logger = logger;
}