|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.directory.DirectoryLockingManager
public class DirectoryLockingManager
Locking manager that will delegate its work to the locking managers of the delegate data stores
Constructor Summary | |
---|---|
DirectoryLockingManager(org.geotools.data.directory.DirectoryTypeCache cache)
|
Method Summary | |
---|---|
boolean |
exists(java.lang.String authID)
Check if any locks exist held by the authorization lockID . |
void |
lockFeatureID(java.lang.String typeName,
java.lang.String authID,
Transaction transaction,
FeatureLock featureLock)
FeatureID based locking. |
boolean |
refresh(java.lang.String authID,
Transaction transaction)
Refresh locks held by the authorization lockID . |
boolean |
release(java.lang.String authID,
Transaction transaction)
Release locks held by the authorization lockID . |
void |
unLockFeatureID(java.lang.String typeName,
java.lang.String authID,
Transaction transaction,
FeatureLock featureLock)
FeatureID based unlocking. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryLockingManager(org.geotools.data.directory.DirectoryTypeCache cache)
Method Detail |
---|
public boolean exists(java.lang.String authID)
LockingManager
lockID
.
(remember that the lock may have expired)
exists
in interface LockingManager
authID
- Authorization for lock
true
if lock was foundpublic boolean release(java.lang.String authID, Transaction transaction) throws java.io.IOException
LockingManager
lockID
.
(remember that the lock may have expired)
release
in interface LockingManager
authID
- Authorization for locktransaction
- Transaction with authorization for lockID
true
if lock was found and released
java.io.IOException
- DOCUMENT ME!public boolean refresh(java.lang.String authID, Transaction transaction) throws java.io.IOException
LockingManager
lockID
.
All features locked with the provied lockID
will be locked
for additional time (the origional duration requested).
(remember that the lock may have expired)
refresh
in interface LockingManager
authID
- Authorization for locktransaction
- Transaction with authorization for lockID
true
if lock was found and refreshed
java.io.IOException
- DOCUMENT ME!public void unLockFeatureID(java.lang.String typeName, java.lang.String authID, Transaction transaction, FeatureLock featureLock) throws java.io.IOException
LockingManager
unLockFeatureID
in interface LockingManager
java.io.IOException
- DOCUMENT ME!public void lockFeatureID(java.lang.String typeName, java.lang.String authID, Transaction transaction, FeatureLock featureLock) throws java.io.IOException
LockingManager
lockFeatureID
in interface LockingManager
java.io.IOException
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |