|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.DiskStorePathManager
public final class DiskStorePathManager
Manager class to handle disk store path. CacheManager has a reference to this manager.
Constructor Summary | |
---|---|
DiskStorePathManager()
Create a diskstore path manager using the default path. |
|
DiskStorePathManager(String initialPath)
Create a diskstore path manager with provided initial path. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiskStorePathManager(String initialPath)
path
- public DiskStorePathManager()
Method Detail |
---|
public boolean resolveAndLockIfExists(String file)
file
- file to check for
true
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 suffix
public File getFile(String name)
name
- the file name
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |