Package com.findwise.hydra

Examples of com.findwise.hydra.StatusUpdater


      statusIO.save(pipelineStatus);
    } else {
      pipelineStatus = statusIO.getStatus();
    }

    statusUpdater = new StatusUpdater(this);

    if (!pipelineStatus.isPrepared()) {
      logger.info("Database is new, preparing it");
      pipelineStatus.setPrepared(true);
      pipelineStatus.setDiscardedMaxSize(conf.getOldMaxSize());
View Full Code Here


    MongoClient mongo = new MongoClient(new MongoClientURI(conf.getDatabaseUrl()));
    DB db = mongo.getDB(conf.getNamespace());
    WriteConcern concern = mongo.getWriteConcern();
    long documentsToKeep = conf.getOldMaxCount();
    int oldDocsMaxSizeMB = conf.getOldMaxSize();
    StatusUpdater updater = new StatusUpdater(new MongoConnector(conf));
    GridFS documentFs = new GridFS(db);

    MongoDocumentIO io = new MongoDocumentIO(db, concern, documentsToKeep,
        oldDocsMaxSizeMB, updater, documentFs);
    io.prepare();
View Full Code Here

TOP

Related Classes of com.findwise.hydra.StatusUpdater

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.