Class ArtifactsGuardImpl

    • Constructor Detail

      • ArtifactsGuardImpl

        public ArtifactsGuardImpl()
    • Method Detail

      • lockWriting

        public void lockWriting​(@NotNull
                                File fileToLock)
        Description copied from interface: ArtifactsGuard

        Locks specified file or directory for writing. Doesn't throw any exceptions if the file system path doesn't exist.

        Specified by:
        lockWriting in interface ArtifactsGuard
        Parameters:
        fileToLock - file to lock, can be absolute file or relative. If relative, than system artifacts directory will be added to the file path.
      • unlockWriting

        public void unlockWriting​(@NotNull
                                  File fileToUnlock)
        Description copied from interface: ArtifactsGuard

        Unlocks writing. Doesn't throw any exceptions if the file system path doesn't exist.

        Specified by:
        unlockWriting in interface ArtifactsGuard
        Parameters:
        fileToUnlock - file to unlock
      • lockReading

        public void lockReading​(@NotNull
                                File fileToLock)
        Description copied from interface: ArtifactsGuard

        Locks specified file or directory for reading. Doesn't throw any exceptions if the file system path doesn't exist.

        Specified by:
        lockReading in interface ArtifactsGuard
        Parameters:
        fileToLock - file to lock, can be absolute file or relative. If relative, than system artifacts directory will be added to the file path.
      • unlockReading

        public void unlockReading​(@NotNull
                                  File fileToUnlock)
        Description copied from interface: ArtifactsGuard

        Unlocks reading. Doesn't throw any exceptions if the file system path doesn't exist.

        Specified by:
        unlockReading in interface ArtifactsGuard
        Parameters:
        fileToUnlock - file to unlock