public EmbeddedMongoDB start ( ) { if ( ! this . active ) { try { this . mongodProcess = MongodStarter . getDefaultInstance ( ) . prepare ( new MongodConfigBuilder ( ) . version ( this . version ) . net ( new Net ( this . host , this . port , false ) ) . build ( ) ) . start ( ) ; this . active = true ; LOG . info ( "Successfully started EmbeddedMongoDB @ {}:{}" , this . host , this . port ) ; } catch ( final IOException e ) { LOG . error ( "Failed to start EmbeddedMongoDB @ {}:{}" , this . host , this . port , e ) ; } } return this ; }
Starts the EmbeddedMongoDB instance