Package io.bdeploy.bhive.op
Class CopyOperation
- All Implemented Interfaces:
BHiveExecution,Callable<TransferStatistics>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddManifest(Manifest.Key key) Add aManifestto be inserted into the destination hive.addManifest(Collection<Manifest.Key> keys) Adds multipleManifests to be inserted into the destination hive.Add anObjectIdto be copied into the destination hiveaddObject(Collection<ObjectId> objectIds) Add anObjectIds to be copied into the destination hivecall()The destinationBHive.setPartialAllowed(boolean allowed) If a partial destination hive is allowed (defaultfalse), no consistency check on the destination hive will be performed after copying objects.Methods inherited from class io.bdeploy.bhive.BHive.Operation
execute, getActivityReporter, getAuditor, getLockContentSupplier, getLockContentValidator, getManifestDatabase, getMarkerRoot, getObjectManager, getTransactions, setRetryCount, submitFileOperation
-
Constructor Details
-
CopyOperation
public CopyOperation()
-
-
Method Details
-
call
- Throws:
Exception
-
addObject
Add anObjectIdto be copied into the destination hive -
addObject
Add anObjectIds to be copied into the destination hive -
addManifest
Adds multipleManifests to be inserted into the destination hive.CAUTION: this will only insert the manifest, NO object which is required/referenced by the manifest will be copied automatically. All
ObjectIds to be copied need to be added usingaddObject(ObjectId). -
addManifest
Add aManifestto be inserted into the destination hive.CAUTION: this will only insert the manifest, NO object which is required/referenced by the manifest will be copied automatically. All
ObjectIds to be copied need to be added usingaddObject(ObjectId). -
setPartialAllowed
If a partial destination hive is allowed (defaultfalse), no consistency check on the destination hive will be performed after copying objects. Normally a quick consistency (reachability of referenced objects for transfered manifests) will be performed to assure all is well. -
setDestinationHive
The destinationBHive.
-