/* * Clear as many resources as possible, even in the face of an environment * that has received a fatal error, in order to support reopening the * environment in the same JVM. */ public synchronized void closeAfterRunRecovery() throws DatabaseException { try { shutdownDaemons(); } catch (InterruptedException IE) { /* Klockwork - ok */ } try { fileManager.clear(); } catch (Exception e) { /* Klockwork - ok */ } try { fileManager.close(); } catch (Exception e) { /* Klockwork - ok */ } DbEnvPool.getInstance().remove(envHome); }
private void hook_afterDoClose(StringBuffer errors) throws DatabaseException { DbEnvPool.getInstance().remove(envHome); }