Package io.bdeploy.bhive.op
Class LockDirectoryOperation
- All Implemented Interfaces:
BHiveExecution,Callable<Void>
Lock a directory. The operations waits for an already existing lock to disappear before proceeding (max 1000 seconds, ~16
minutes). This means only a single lock can exist (intra- and inter-VM).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall()setDirectory(Path directory) Sets the directory that should be locked.Methods inherited from class io.bdeploy.bhive.BHive.Operation
execute, getActivityReporter, getAuditor, getLockContentSupplier, getLockContentValidator, getManifestDatabase, getMarkerRoot, getObjectManager, getTransactions, setRetryCount, submitFileOperation
-
Constructor Details
-
LockDirectoryOperation
public LockDirectoryOperation()
-
-
Method Details
-
call
- Throws:
Exception
-
setDirectory
Sets the directory that should be locked.
-