@Test public void testClearAndReInsert() throws TTIOException { mCache.close(); mCache = new LRULog(CoreTestHelper.PATHS.PATH1.getFile(), mResource.mDataFac, mResource.mMetaFac); checkNull(); insertData(); checkContent(); }
public synchronized void close() throws TTIOException { try { mClosed = true; mDatabase.close(); mEnv.removeDatabase(null, NAME + mSelected_db); mEnv.close(); IOUtils.recursiveDelete(mLocation); mLocation.mkdir(); } catch (final DatabaseException exc) { throw new TTIOException(exc); } }
LRULog implements ILog { public synchronized void close() throws TTIOException { try { mClosed = true; mDatabase.close(); mEnv.removeDatabase(null, NAME + mSelected_db); mEnv.close(); IOUtils.recursiveDelete(mLocation); mLocation.mkdir(); } catch (final DatabaseException exc) { throw new TTIOException(exc); } } }
LRULog implements ILog { public synchronized void close() throws TTIOException { try { mClosed = true; mDatabase.close(); mEnv.removeDatabase(null, NAME + mSelected_db); mEnv.close(); IOUtils.recursiveDelete(mLocation); mLocation.mkdir(); } catch (final DatabaseException exc) { throw new TTIOException(exc); } } LRULog(final File pFile, final IDataFactory pDataFac, final IMetaEntryFactory pMetaFac); }
LRULog implements ILog { public synchronized void close() throws TTIOException { try { mClosed = true; mDatabase.close(); mEnv.removeDatabase(null, NAME + mSelected_db); mEnv.close(); IOUtils.recursiveDelete(mLocation); mLocation.mkdir(); } catch (final DatabaseException exc) { throw new TTIOException(exc); } } LRULog(final File pFile, final IDataFactory pDataFac, final IMetaEntryFactory pMetaFac); synchronized LogValue get(final LogKey pKey); void put(final LogKey pKey, final LogValue pValue); synchronized void close(); synchronized boolean isClosed(); @Override String toString(); LogIterator getIterator(); }
LRULog implements ILog { public synchronized void close() throws TTIOException { try { mClosed = true; mDatabase.close(); mEnv.removeDatabase(null, NAME + mSelected_db); mEnv.close(); IOUtils.recursiveDelete(mLocation); mLocation.mkdir(); } catch (final DatabaseException exc) { throw new TTIOException(exc); } } LRULog(final File pFile, final IDataFactory pDataFac, final IMetaEntryFactory pMetaFac); synchronized LogValue get(final LogKey pKey); void put(final LogKey pKey, final LogValue pValue); synchronized void close(); synchronized boolean isClosed(); @Override String toString(); LogIterator getIterator();  }