public class ShuffleCacheImpl extends Object implements ShuffleCache
Constructor and Description |
---|
ShuffleCacheImpl() |
Modifier and Type | Method and Description |
---|---|
void |
createTemporaryFile(String path)
Add a new temporary file to the "shuffle cache".
|
boolean |
isCaseSensitive() |
boolean |
isCreated(String path)
Has the path been "soft created"
|
boolean |
isDeleted(String path)
Has the path been "soft deleted"
|
boolean |
isShuffleDirectory(String dir)
Does the specified directory contain a shuffled temporary file
|
void |
renameTemporaryFile(String oldPath,
String newPath)
Takes the contents of a temporary file and applies it to the new path.
|
void |
setCaseSensitive(boolean caseSensitive) |
void |
softDelete(String path)
Soft delete a file.
|
public void createTemporaryFile(String path)
ShuffleCache
createTemporaryFile
in interface ShuffleCache
public void softDelete(String path)
ShuffleCache
softDelete
in interface ShuffleCache
public void renameTemporaryFile(String oldPath, 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(String dir)
ShuffleCache
isShuffleDirectory
in interface ShuffleCache
dir
- Stringpublic boolean isDeleted(String path)
ShuffleCache
isDeleted
in interface ShuffleCache
public boolean isCreated(String path)
ShuffleCache
isCreated
in interface ShuffleCache
path
- Stringpublic void setCaseSensitive(boolean caseSensitive)
public boolean isCaseSensitive()
Copyright © 2005–2017 Alfresco Software. All rights reserved.