Package org.geotools.data.directory
Class DirectoryLockingManager
Object
DirectoryLockingManager
- All Implemented Interfaces:
LockingManager
Locking manager that will delegate its work to the locking managers of the delegate data stores
- Author:
- Andrea Aime - OpenGeo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if any locks exist held by the authorizationlockID
.void
lockFeatureID
(String typeName, String authID, Transaction transaction, FeatureLock featureLock) FeatureID based locking.boolean
refresh
(String authID, Transaction transaction) Refresh locks held by the authorizationlockID
.boolean
release
(String authID, Transaction transaction) Release locks held by the authorizationlockID
.void
unLockFeatureID
(String typeName, String authID, Transaction transaction, FeatureLock featureLock) FeatureID based unlocking.
-
Constructor Details
-
DirectoryLockingManager
public DirectoryLockingManager(DirectoryTypeCache cache)
-
-
Method Details
-
exists
Description copied from interface:LockingManager
Check if any locks exist held by the authorizationlockID
.(remember that the lock may have expired)
- Specified by:
exists
in interfaceLockingManager
- Parameters:
authID
- Authorization for lock- Returns:
true
if lock was found
-
release
Description copied from interface:LockingManager
Release locks held by the authorizationlockID
.(remember that the lock may have expired)
- Specified by:
release
in interfaceLockingManager
- Parameters:
authID
- Authorization for locktransaction
- Transaction with authorization for lockID- Returns:
true
if lock was found and released- Throws:
IOException
-
refresh
Description copied from interface:LockingManager
Refresh locks held by the authorizationlockID
.All features locked with the provied
lockID
will be locked for additional time (the origional duration requested).(remember that the lock may have expired)
- Specified by:
refresh
in interfaceLockingManager
- Parameters:
authID
- Authorization for locktransaction
- Transaction with authorization for lockID- Returns:
true
if lock was found and refreshed- Throws:
IOException
-
unLockFeatureID
public void unLockFeatureID(String typeName, String authID, Transaction transaction, FeatureLock featureLock) throws IOException Description copied from interface:LockingManager
FeatureID based unlocking.- Specified by:
unLockFeatureID
in interfaceLockingManager
- Throws:
IOException
-
lockFeatureID
public void lockFeatureID(String typeName, String authID, Transaction transaction, FeatureLock featureLock) throws IOException Description copied from interface:LockingManager
FeatureID based locking.- Specified by:
lockFeatureID
in interfaceLockingManager
- Throws:
IOException
-