/** * For debugging. This dumps the values by default. */ public void dump() { dump(true); }
/** * For debugging. This dumps the values by default. */ public void dump() { dump( true ); }
/** * The main program for the DiskDumper class * <p> * Creates a disk cache and then calls dump, which write out the contents to * a debug log. * <p> * @param args * The command line arguments */ public static void main( String[] args ) { if ( args.length != 1 ) { System.out.println( "Usage: java org.apache.commons.jcs.auxiliary.disk.DiskDump <cache_name>" ); System.exit( 0 ); } IndexedDiskCacheAttributes attr = new IndexedDiskCacheAttributes(); attr.setCacheName( args[0] ); attr.setDiskPath( args[0] ); IndexedDiskCache<Serializable, Serializable> dc = new IndexedDiskCache<Serializable, Serializable>( attr ); dc.dump( true ); System.exit( 0 ); } }
/** * The main program for the DiskDumper class * <p> * Creates a disk cache and then calls dump, which write out the contents to * a debug log. * <p> * @param args * The command line arguments */ public static void main( String[] args ) { if ( args.length != 1 ) { System.out.println( "Usage: java org.apache.commons.jcs.auxiliary.disk.DiskDump <cache_name>" ); System.exit( 0 ); } IndexedDiskCacheAttributes attr = new IndexedDiskCacheAttributes(); attr.setCacheName( args[0] ); attr.setDiskPath( args[0] ); IndexedDiskCache<Serializable, Serializable> dc = new IndexedDiskCache<Serializable, Serializable>( attr ); dc.dump( true ); System.exit( 0 ); } }