public void connect ( ) throws DBException { try { LOGGER . debug ( "Initializing MongoDB client" ) ; mongoClient = new MongoClient ( this . host , this . port ) ; } catch ( UnknownHostException e ) { throw new DBException ( e . toString ( ) ) ; } }
Connect to MongoDB Host .