Class AozanLock
- java.lang.Object
-
- fr.ens.biologie.genomique.aozan.aozan3.legacy.AozanLock
-
public class AozanLock extends Object
This class define a global lock for Aozan.- Since:
- 3.0
- Author:
- Laurent Jourdren
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createLock()
Create the lock file.boolean
isLocked()
Check if lock is locked.void
unlock()
Remove the lock file.
-
-
-
Constructor Detail
-
AozanLock
public AozanLock(Path lockFile)
Constructor.- Parameters:
lockFile
- the lock file
-
-
Method Detail
-
createLock
public void createLock() throws Aozan3Exception
Create the lock file.- Throws:
Aozan3Exception
- if error occurs while creating the lock file
-
unlock
public void unlock() throws Aozan3Exception
Remove the lock file.- Throws:
Aozan3Exception
- if error occurs while removing the lock file
-
isLocked
public boolean isLocked()
Check if lock is locked.- Returns:
- true if the lock is locked
-
-