Package org.ametys.runtime.data
Class AmetysHomeLock
java.lang.Object
org.ametys.runtime.data.AmetysHomeLock
Exclusive lock on the Ametys Home directory.
Based on the Jackrabbit repository lock.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AmetysHomeLock
Default constructor. Initialize the instance. The lock still needs to be explicitly acquired using theacquire()
method.- Parameters:
ametysHome
- The ametys home directory- Throws:
AmetysHomeLockException
- if the canonical path of the directory can not be determined
-
-
Method Details
-
acquire
Lock the Ametys home directory- Throws:
AmetysHomeLockException
- if the repository lock can not be acquired
-
release
Releases repository lock.
-