comparison test/org/dancres/blitz/Clean.java @ 0:3dc0c5604566

Initial checkin of blitz 2.0 fcs - no installer yet.
author Dan Creswell <dan.creswell@gmail.com>
date Sat, 21 Mar 2009 11:00:06 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:3dc0c5604566
1 package org.dancres.blitz;
2
3 import net.jini.core.entry.Entry;
4 import net.jini.core.lease.Lease;
5
6 import org.dancres.blitz.mangler.*;
7
8 import org.dancres.blitz.disk.Disk;
9 import org.dancres.blitz.disk.DiskTxn;
10
11 public class Clean {
12 public static void main(String args[]) {
13
14 try {
15 EntryMangler myMangler = new EntryMangler();
16
17 System.out.println("Start space");
18
19 SpaceImpl mySpace = new SpaceImpl(null);
20
21 while (true) {
22 MangledEntry myEntry =
23 mySpace.take(MangledEntry.NULL_TEMPLATE, null,
24 1000);
25
26 if (myEntry == null)
27 break;
28 else
29 System.out.println("Took: " + myMangler.unMangle(myEntry));
30 }
31
32 mySpace.stop();
33
34 } catch (Exception anE) {
35 System.err.println("Got exception :(");
36 anE.printStackTrace(System.err);
37 }
38
39 }
40 }