/** * Initializes an empty disk cache. * <p> * * @throws IOException */ private void initializeEmptyStore() throws IOException { initializeKeyMap(); if (dataFile.length() > 0) { dataFile.reset(); } }
/** * Sets the maxKeySize attribute of the DiskCacheAttributes object * <p> * @param maxKeySize The new maxKeySize value */ public void setMaxKeySize( int maxKeySize ) { this.maxKeySize = maxKeySize; // make sure the sizes are in accord with our rule. setMaxRecycleBinSize( maxRecycleBinSize ); }
@Override public void run() { optimizeFile(); currentOptimizationThread = null; } }, "IndexedDiskCache-OptimizationThread");
@Override public IndexedDiskCacheAttributes getCacheAttributes() { IndexedDiskCacheAttributes ret = new IndexedDiskCacheAttributes(); ret.setDiskLimitType(DiskLimitType.COUNT); return ret; } public void testRecycleBin()
/** * For debugging. This dumps the values by default. */ public void dump() { dump( true ); }
@Override public void runTest() throws Exception { this.runTestForRegion( "indexedRegion2" ); } } );
@Override public void run() { disposeInternal(); } };
@Override public void runTest() throws Exception { this.runTestForRegion( "indexedRegion3" ); } } );
@Override public void runTest() throws Exception { this.runTestForRegion( "indexedRegion4", 10000, 50000, 5 ); } } );
@Override public void runTest() throws Exception { this.runTestForRegion( "indexedRegion3" ); } } );
@Override public void runTest() throws Exception { this.runTestForRegion( "indexedRegion4", 0, 200 ); } } );
@Override public void runTest() throws Exception { this.runTestForRegion( "indexedRegion4", 1000, 1200 ); } } );
@Override public void runTest() throws Exception { this.runTestForRegion( "indexedRegion1" ); } } );
@Override public void runTest() throws Exception { this.runTestForRegion( "indexedRegion4", 10000, 50000, 2 ); } } );
@Override public void runTest() throws Exception { this.runTestForRegion( "indexedRegion4", 10000, 50000, 4 ); } } );
@Override public void runTest() throws Exception { this.runTestForRegion( "indexedRegion1" ); } } );
@Override public void runTest() throws Exception { this.runTestForRegion( "indexedRegion4", 2000, 2200 ); } } );
@Override public void runTest() throws Exception { this.runTestForRegion( "indexedRegion4", 0, 5100 ); } } );
/** * Initializes an empty disk cache. * <p> * @throws IOException */ private void initializeEmptyStore() throws IOException { initializeKeyMap(); if ( dataFile.length() > 0 ) { dataFile.reset(); } }
@Override public void runTest() throws Exception { this.runTestForRegion( "indexedRegion2" ); } } );