|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.sail.rdbms.util.DatabaseLockManager
public class DatabaseLockManager
| Constructor Summary | |
|---|---|
DatabaseLockManager(DataSource ds)
|
|
DatabaseLockManager(DataSource ds,
String user,
String password)
|
|
| Method Summary | |
|---|---|
String |
getLocation()
Technical description of where the lock is located, such as a URL. |
boolean |
isDebugEnabled()
|
boolean |
isLocked()
Determines if the SAIL is locked. |
Lock |
lockOrFail()
Creates a lock in a SAIL if it does not yet exist. |
boolean |
revokeLock()
Revokes a lock owned by another process. |
Lock |
tryLock()
Creates a lock in a SAIL 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 DatabaseLockManager(DataSource ds)
public DatabaseLockManager(DataSource ds,
String user,
String password)
| Method Detail |
|---|
public String getLocation()
LockManager
getLocation in interface LockManagerpublic boolean isDebugEnabled()
public boolean isLocked()
LockManager
isLocked in interface LockManagertrue if the SAIL is already locked.public Lock tryLock()
LockManager
tryLock in interface LockManager
public Lock lockOrFail()
throws SailLockedException
LockManager
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 | |||||||||