Examples of MongoConnection


Examples of org.apache.jackrabbit.oak.plugins.mongomk.util.MongoConnection

     */   
    public static MongoConnection getConnection(String dbName) {
        if (exception != null) {
            return null;
        }
        MongoConnection mongoConnection = null;
        try {
            mongoConnection = new MongoConnection(HOST, PORT, dbName);
            mongoConnection.getDB().command(new BasicDBObject("ping", 1));
            // dropCollections(mongoConnection.getDB());
        } catch (Exception e) {
            exception = e;
            mongoConnection = null;
        }
View Full Code Here

Examples of org.graylog2.database.MongoConnection

    private static MongoConnection mongoConnection = null;

    @Inject
    public MongoConnectionProvider(Configuration configuration) {
        if (mongoConnection == null) {
            mongoConnection = new MongoConnection(configuration);

            mongoConnection.connect();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.