Package io.bdeploy.bhive.op
Class ImportOperation
- All Implemented Interfaces:
BHiveExecution,Callable<Manifest.Key>
Import a
Path recursively into the local hive.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd additional meta-data to record in the manifest.Executes the operation.setManifest(Manifest.Key manifest) Set the to-createManifestManifest.Key.setSourcePath(Path toImport) Set the path to import from.Methods inherited from class io.bdeploy.bhive.BHive.TransactedOperation
callMethods inherited from class io.bdeploy.bhive.BHive.Operation
execute, getActivityReporter, getAuditor, getLockContentSupplier, getLockContentValidator, getManifestDatabase, getMarkerRoot, getObjectManager, getTransactions, setRetryCount, submitFileOperation
-
Constructor Details
-
ImportOperation
public ImportOperation()
-
-
Method Details
-
callTransacted
Description copied from class:BHive.TransactedOperationExecutes the operation. The current thread is guaranteed to be associated with a transaction.- Specified by:
callTransactedin classBHive.TransactedOperation<Manifest.Key>- Throws:
Exception
-
setSourcePath
Set the path to import from. The given directory will be recursively imported into theBHive. -
setManifest
Set the to-createManifestManifest.Key. -
addLabel
Add additional meta-data to record in the manifest.
-