|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object proai.cache.RCDisk
public class RCDisk
The file-based portion of the record cache.
Field Summary | |
---|---|
static java.lang.String |
PATH_DATE_PATTERN
|
Constructor Summary | |
---|---|
RCDisk(java.io.File baseDir)
|
Method Summary | |
---|---|
void |
cancel(java.lang.String path)
Deletes path and all files created after it while pruning any empty directories that come about as a result. |
void |
delete(java.lang.String path)
|
CachedContent |
getContent(java.lang.String path)
|
CachedContent |
getContent(java.lang.String path,
java.lang.String dateStamp,
boolean headerOnly)
|
java.io.File |
getFile(java.lang.String path)
|
RCDiskWriter |
getNewWriter()
Get a new RCDiskWriter backed by a new file in the disk cache. |
void |
pruneEmptyDirs()
This should be pretty fast. |
java.lang.String |
write(Writable writable)
Write the content of the given Writable to a new file and
return the path of the file, relative to the disk cache base directory. |
void |
writeAllPaths(java.io.PrintWriter writer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PATH_DATE_PATTERN
Constructor Detail |
---|
public RCDisk(java.io.File baseDir)
Method Detail |
---|
public RCDiskWriter getNewWriter() throws ServerException
ServerException
public java.lang.String write(Writable writable) throws ServerException
Writable
to a new file and
return the path of the file, relative to the disk cache base directory.
ServerException
public java.io.File getFile(java.lang.String path)
public CachedContent getContent(java.lang.String path)
public CachedContent getContent(java.lang.String path, java.lang.String dateStamp, boolean headerOnly)
public void delete(java.lang.String path)
public void cancel(java.lang.String path) throws ServerException
ServerException
public void pruneEmptyDirs()
public void writeAllPaths(java.io.PrintWriter writer)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |