~pbeaman/akiban-persistit/fix-1032701-interrupts-leave-latches

« back to all changes in this revision

Viewing changes to examples/FindFile/README.txt

  • Committer: Padraig O'Sullivan
  • Date: 2011-02-01 16:48:36 UTC
  • mfrom: (125.1.12 learning)
  • Revision ID: osullivan.padraig@gmail.com-20110201164836-mtdbk9d0rgcxpwye
Merge Padraig.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
FindFile is a small Swing application that demonstrates use of Persistit's
 
3
KeyFilter class, the Exchange pool, and use of Persistit with Swing.
 
4
 
 
5
To use FindFile, first build a text file containing a (large) list of file
 
6
names. To to this, use one of these commands:
 
7
 
 
8
        Windows:        dir /b /s C:\ >> FileNames.txt
 
9
        Unix/Linux:     ls -1 -p -R > FileNames.txt
 
10
 
 
11
After launching FindFile, specify this file as the source file to load and 
 
12
click the "Load" button.
 
13
 
 
14
This demo loads the file names from a text file rather than 
 
15
enumerating all the files on the disk through Java file operations
 
16
for simplicity, and also because we want you to see that Persistit 
 
17
is capable of loading and indexing a lot of information in just a few 
 
18
seconds.
 
19
 
 
20
To build FindFile:
 
21
 
 
22
        Run Ant on build.xml in this directory (target "compile")
 
23
        
 
24
        - or -
 
25
        
 
26
        javac -classpath ../../target/akiban-persistit-2.1-SNAPSHOT-jar-with-dependencies-and-tests.jar FindFile.java
 
27
 
 
28
To run FindFile:
 
29
 
 
30
        Run Ant on build.xml in this directory (target "run")
 
31
        
 
32
        - or -
 
33
        
 
34
        java -classpath ../../target/akiban-persistit-2.1-SNAPSHOT-jar-with-dependencies-and-tests.jar;. FindFile
 
35
 
 
36
Persistit will place a volume file in paths specified by persistit.properties.
 
37
You can change the location of these files by modifying the datapath property 
 
38
of this configuration file.