public final class DiskStorePathManager extends Object
Constructor and Description |
---|
DiskStorePathManager()
Create a diskstore path manager using the default path.
|
DiskStorePathManager(String initialPath)
Create a diskstore path manager with provided initial path.
|
Modifier and Type | Method and Description |
---|---|
File |
getFile(String name)
Get a file object for the given name
|
File |
getFile(String cacheName,
String suffix)
Get a file object for the given cache-name and suffix
|
boolean |
isAutoCreated()
Was this path auto-created (ie.
|
boolean |
isDefault()
Was this path sourced from the default value.
|
void |
releaseLock()
release the lock file used for collision detection
should be called when cache manager shutdowns
|
boolean |
resolveAndLockIfExists(String file)
Resolve and lock this disk store path if the resultant path contains the supplied file.
|
public DiskStorePathManager(String initialPath)
path
- public DiskStorePathManager()
public boolean resolveAndLockIfExists(String file)
file
- file to check fortrue
if the file existed and the path was successfully lockedpublic boolean isAutoCreated()
public boolean isDefault()
public void releaseLock()
public File getFile(String cacheName, String suffix)
cacheName
- the cache namesuffix
- a file suffixCopyright © 2003–2016 Terracotta, Inc.. All rights reserved.