List of usage examples for com.mongodb Mongo getDB
@Deprecated public DB getDB(final String dbName)
From source file:com.linuxbox.enkive.message.search.mongodb.MongoMessageSearchService.java
License:Open Source License
public MongoMessageSearchService(Mongo m, String dbName, String collName) { this(m.getDB(dbName), collName); }
From source file:com.linuxbox.enkive.permissions.message.MongoMessagePermissionsService.java
License:Open Source License
public MongoMessagePermissionsService(Mongo mongo, String dbName, String collName) { this(mongo.getDB(dbName).getCollection(collName)); }
From source file:com.linuxbox.enkive.retriever.mongodb.MongoRetrieverService.java
License:Open Source License
public MongoRetrieverService(Mongo m, String dbName, String collName) { this(m.getDB(dbName).getCollection(collName)); }
From source file:com.linuxbox.enkive.statistics.gathering.mongodb.MongoStatsAttachmentsGatherer.java
License:Open Source License
public MongoStatsAttachmentsGatherer(Mongo m, String dbName, String attachmentsColl, String gathererName, String humanName, List<String> keys) throws GathererException { this(gathererName, humanName, keys, m.getDB(dbName).getCollection(attachmentsColl + GRID_FS_FILES_COLLECTION_SUFFIX)); }
From source file:com.linuxbox.enkive.statistics.gathering.mongodb.MongoStatsCollectionGatherer.java
License:Open Source License
public MongoStatsCollectionGatherer(Mongo m, String dbName, String gathererName, String humanName, List<String> keys) throws GathererException { super(gathererName, humanName, keys); this.m = m;/* w ww . ja v a 2s. c o m*/ db = m.getDB(dbName); }
From source file:com.linuxbox.enkive.statistics.gathering.mongodb.MongoStatsDatabaseGatherer.java
License:Open Source License
public MongoStatsDatabaseGatherer(Mongo m, String dbName, String gathererName, String humanName, List<String> keys) throws GathererException { super(gathererName, humanName, keys); this.m = m;/* www . j ava 2 s.c o m*/ db = m.getDB(dbName); }
From source file:com.linuxbox.enkive.statistics.gathering.past.AttachmentsPastGatherer.java
License:Open Source License
public AttachmentsPastGatherer(Mongo m, String dbName, String attachmentsColl, String statisticsColl, String name, StatsClient client, int hrKeepTime, int dayKeepTime, int weekKeepTime, int monthKeepTime) { super(name, client, hrKeepTime, dayKeepTime, weekKeepTime, monthKeepTime); this.attachmentsColl = m.getDB(dbName).getCollection(attachmentsColl + ".files"); }
From source file:com.linuxbox.enkive.statistics.services.retrieval.mongodb.MongoStatsRetrievalService.java
License:Open Source License
public MongoStatsRetrievalService(Mongo mongo, String dbName, String collectionName) { this(mongo.getDB(dbName).getCollection(collectionName)); }
From source file:com.linuxbox.enkive.statistics.services.storage.mongodb.MongoStatsStorageService.java
License:Open Source License
public MongoStatsStorageService(Mongo mongo, String dbName, String collectionName) { this(mongo.getDB(dbName).getCollection(collectionName)); }
From source file:com.linuxbox.enkive.workspace.mongo.MongoSearchQueryBuilder.java
License:Open Source License
public MongoSearchQueryBuilder(Mongo m, String searchQueryDBName, String searchQueryCollName) { this(m.getDB(searchQueryDBName).getCollection(searchQueryCollName)); }