pipelineStatus.setDiscardedMaxSize(conf.getOldMaxSize());
pipelineStatus.setDiscardedToKeep(conf.getOldMaxCount());
documentIO = new MongoDocumentIO(db, concern,
pipelineStatus.getNumberToKeep(),
pipelineStatus.getDiscardedMaxSize(), statusUpdater, new GridFS(db,
MongoDocumentIO.DOCUMENT_FS));
documentIO.prepare();
pipelineWriter.prepare();
statusIO.save(pipelineStatus);
} else {
documentIO = new MongoDocumentIO(db, concern,
pipelineStatus.getNumberToKeep(),
pipelineStatus.getDiscardedMaxSize(), statusUpdater, new GridFS(db,
MongoDocumentIO.DOCUMENT_FS));
}
connected = true;