|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.sail.helpers.DirectoryLockManager
public class DirectoryLockManager
Used to create a lock in a directory.
| Constructor Summary | |
|---|---|
DirectoryLockManager(File dir)
|
|
| Method Summary | |
|---|---|
String |
getLocation()
Technical description of where the lock is located, such as a URL. |
boolean |
isLocked()
Determines if the directory is locked. |
Lock |
lockOrFail()
Creates a lock in a directory if it does not yet exist. |
boolean |
revokeLock()
Revokes a lock owned by another process. |
Lock |
tryLock()
Creates a lock in a directory if it does not yet exist. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectoryLockManager(File dir)
| Method Detail |
|---|
public String getLocation()
LockManager
getLocation in interface LockManagerpublic boolean isLocked()
isLocked in interface LockManagertrue if the directory is already locked.public Lock tryLock()
tryLock in interface LockManager
public Lock lockOrFail()
throws SailLockedException
lockOrFail in interface LockManagerSailLockedException - if the directory is already locked.public boolean revokeLock()
revokeLock in interface LockManagertrue if a lock was successfully revoked.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||