Class AozanLock


  • public class AozanLock
    extends Object
    This class define a global lock for Aozan.
    Since:
    3.0
    Author:
    Laurent Jourdren
    • 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
      • isLocked

        public boolean isLocked()
        Check if lock is locked.
        Returns:
        true if the lock is locked