public class ShuffleCacheImpl extends java.lang.Object implements ShuffleCache
| Constructor and Description |
|---|
ShuffleCacheImpl() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void createTemporaryFile(java.lang.String path)
ShuffleCachecreateTemporaryFile in interface ShuffleCachepublic void softDelete(java.lang.String path)
ShuffleCachesoftDelete in interface ShuffleCachepublic void renameTemporaryFile(java.lang.String oldPath,
java.lang.String newPath)
ShuffleCacheIf 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 ShuffleCacheoldPath - the location of the temporaryFilenewPath - the location of the new file.public boolean isShuffleDirectory(java.lang.String dir)
ShuffleCacheisShuffleDirectory in interface ShuffleCachepublic boolean isDeleted(java.lang.String path)
ShuffleCacheisDeleted in interface ShuffleCachepublic boolean isCreated(java.lang.String path)
ShuffleCacheisCreated in interface ShuffleCachepublic void setCaseSensitive(boolean caseSensitive)
public boolean isCaseSensitive()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.