Class MongoDBImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      MongoDBImpl​(org.slf4j.Logger logger, MongoDBSource mongoDBSource, java.lang.String defaultDbName, boolean consistentRequest, boolean secureMode, java.lang.String dbUsername, java.lang.String dbPassword)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.mongodb.DB getDefaultMongoDb()
      Obtain a shared instance of the MongoDB database connection object connected to the default database
      com.mongodb.DB getMongoDb​(java.lang.String dbname)
      Obtain a shared instance of the MongoDB database connection object for the specific database
      void threadDidCleanup()
      Invoked by PerthreadManager service when a thread performs and end-of-request cleanup.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MongoDBImpl

        public MongoDBImpl​(org.slf4j.Logger logger,
                           MongoDBSource mongoDBSource,
                           java.lang.String defaultDbName,
                           boolean consistentRequest,
                           boolean secureMode,
                           java.lang.String dbUsername,
                           java.lang.String dbPassword)
    • Method Detail

      • getDefaultMongoDb

        public com.mongodb.DB getDefaultMongoDb()
        Description copied from interface: MongoDB
        Obtain a shared instance of the MongoDB database connection object connected to the default database
        Specified by:
        getDefaultMongoDb in interface MongoDB
        Returns:
        the DB connection object
      • getMongoDb

        public com.mongodb.DB getMongoDb​(java.lang.String dbname)
        Description copied from interface: MongoDB
        Obtain a shared instance of the MongoDB database connection object for the specific database
        Specified by:
        getMongoDb in interface MongoDB
        Parameters:
        dbname - the database name to connect to
        Returns:
        the DB connection object