public RrdBerkeleyDbBackendFactory(Database rrdDatabase) { this.rrdDatabase = rrdDatabase; RrdBackendFactory.registerAndSetAsDefaultFactory(this); }
/** * Creates a RrdMongoDBBackendFactory. Make sure that the passed {@link DBCollection} has a safe write * concern, is capped (if needed) and slaveOk() called if applicable. * * @param rrdCollection the collection to use for storing RRD byte data */ public RrdMongoDBBackendFactory(DBCollection rrdCollection) { this.rrdCollection = rrdCollection; // make sure we have an index on the path field rrdCollection.ensureIndex(new BasicDBObject("path", 1)); // set the RRD backend factory RrdBackendFactory.registerAndSetAsDefaultFactory(this); }
RrdBackendFactory.registerAndSetAsDefaultFactory(this);