public final class PersistNFS extends Persist
Persist.PersistEntry
Constructor and Description |
---|
PersistNFS() |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<java.lang.String> |
calcTypeaheadMatches(java.lang.String filter,
int limit)
Calculate typeahead matches for src
|
void |
cleanUp()
Delete persistent storage on startup and shutdown
|
static Key |
decodeFile(java.io.File f)
Key from file
|
void |
delete(Value v)
Reclaim space from a previously stored Value
|
void |
importFiles(java.lang.String path,
java.lang.String pattern,
java.util.ArrayList<java.lang.String> files,
java.util.ArrayList<java.lang.String> keys,
java.util.ArrayList<java.lang.String> fails,
java.util.ArrayList<java.lang.String> dels) |
byte[] |
load(Value v)
Load a previously stored Value
|
static java.io.InputStream |
openStream(Key k)
InputStream from a NFS-based Key
|
void |
store(Value v)
Store a Value into persistent storage, consuming some storage space.
|
Key |
uriToKey(java.net.URI uri)
Transform given uri into file vector holding file name.
|
canHandle, create, delete, exists, getHomeDirectory, getParent, getTotalSpace, getUsableSpace, isDirectory, key2Str, length, list, mkdirs, open, rename
public static Key decodeFile(java.io.File f)
public void cleanUp()
Persist
public static java.io.InputStream openStream(Key k) throws java.io.IOException
java.io.IOException
public byte[] load(Value v) throws java.io.IOException
Persist
public void store(Value v)
Persist
public void delete(Value v)
Persist
public Key uriToKey(java.net.URI uri)
Persist
public java.util.ArrayList<java.lang.String> calcTypeaheadMatches(java.lang.String filter, int limit)
Persist
calcTypeaheadMatches
in class Persist
filter
- Source string to match for typeaheadlimit
- Max number of entries to returnpublic void importFiles(java.lang.String path, java.lang.String pattern, java.util.ArrayList<java.lang.String> files, java.util.ArrayList<java.lang.String> keys, java.util.ArrayList<java.lang.String> fails, java.util.ArrayList<java.lang.String> dels)
importFiles
in class Persist