Package fr.eolya.crawler.queue.mongodb

Examples of fr.eolya.crawler.queue.mongodb.MongoDBSourceItemsQueue


  public static ISourceItemsQueue getSourceItemsQueueInstance(String type, int sourceId, IDBConnection con, String dbName, String dbCollName) {
    if (!type.equals(con.getType())) return null;

    if ("mongodb".equals(type)) {
      try {
        return new MongoDBSourceItemsQueue(sourceId, (MongoDBConnection) con, dbName, dbCollName);
      } catch (UnknownHostException e) {
        e.printStackTrace();
        return null;
      }
    }
View Full Code Here

TOP

Related Classes of fr.eolya.crawler.queue.mongodb.MongoDBSourceItemsQueue

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.