|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.filesys.alfresco.ShuffleCacheImpl
public class ShuffleCacheImpl
Cache for alfresco "CIFS shuffles"
Constructor Summary | |
---|---|
ShuffleCacheImpl()
|
Method Summary | |
---|---|
void |
createTemporaryFile(java.lang.String path)
Add a new temporary file to the "shuffle cache". |
boolean |
isCaseSensitive()
|
boolean |
isCreated(java.lang.String path)
Has the path been "soft created" |
boolean |
isDeleted(java.lang.String path)
Has the path been "soft deleted" |
boolean |
isShuffleDirectory(java.lang.String dir)
Does the specified directory contain a shuffled temporary file |
void |
renameTemporaryFile(java.lang.String oldPath,
java.lang.String newPath)
Takes the contents of a temporary file and applies it to the new path. |
void |
setCaseSensitive(boolean caseSensitive)
|
void |
softDelete(java.lang.String path)
Soft delete a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShuffleCacheImpl()
Method Detail |
---|
public void createTemporaryFile(java.lang.String path)
ShuffleCache
createTemporaryFile
in interface ShuffleCache
public void softDelete(java.lang.String path)
ShuffleCache
softDelete
in interface ShuffleCache
public void renameTemporaryFile(java.lang.String oldPath, java.lang.String newPath)
ShuffleCache
If the new path has been soft deleted then the soft delete is removed.
After the contents of the temporary file have been written the it may may be made available for garbage collection.
renameTemporaryFile
in interface ShuffleCache
oldPath
- the location of the temporaryFilenewPath
- the location of the new file.public boolean isShuffleDirectory(java.lang.String dir)
ShuffleCache
isShuffleDirectory
in interface ShuffleCache
public boolean isDeleted(java.lang.String path)
ShuffleCache
isDeleted
in interface ShuffleCache
public boolean isCreated(java.lang.String path)
ShuffleCache
isCreated
in interface ShuffleCache
public void setCaseSensitive(boolean caseSensitive)
public boolean isCaseSensitive()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |