List of usage examples for com.mongodb Mongo close
public void close()
From source file:se.inera.axel.riv.impl.MongoDBTestContextConfig.java
License:Open Source License
@Override public void destroy() throws Exception { Mongo mongo = mongo(); if (mongo != null) mongo.close(); MongodProcess mongodProcess = mongodProcess(); if (mongodProcess != null) mongodProcess.stop();/*ww w . j ava 2s . c o m*/ }