Class ArtifactsGuardImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.artifacts.ArtifactsGuardImpl
-
- All Implemented Interfaces:
ArtifactsGuard
public class ArtifactsGuardImpl extends Object implements ArtifactsGuard
-
-
Constructor Summary
Constructors Constructor Description ArtifactsGuardImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
lockReading(File fileToLock)
Locks specified file or directory for reading.void
lockWriting(File fileToLock)
Locks specified file or directory for writing.void
unlockReading(File fileToUnlock)
Unlocks reading.void
unlockWriting(File fileToUnlock)
Unlocks writing.
-
-
-
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 interfaceArtifactsGuard
- 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 interfaceArtifactsGuard
- 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 interfaceArtifactsGuard
- 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 interfaceArtifactsGuard
- Parameters:
fileToUnlock
- file to unlock
-
-