Package fr.eolya.utils.nosql.mongodb

Examples of fr.eolya.utils.nosql.mongodb.MongoDBDatabase


  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;
  }
View Full Code Here


  private long size;
  private long maxDocSize;

  public MongoDBDocumentCache(String sourceId, MongoDBConnection con, String dbName, String collName) {
    this.con = con;
    this.db = new MongoDBDatabase(this.con, dbName);
    this.collName = collName + "_" + sourceId;
    this.coll = new MongoDBCollection(db,this.collName);
    this.size = this.coll.size();
    this.maxDocSize = 0;
  }
View Full Code Here

TOP

Related Classes of fr.eolya.utils.nosql.mongodb.MongoDBDatabase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.