Package io.bdeploy.bhive.op
Class ObjectReadOperation
java.lang.Object
io.bdeploy.bhive.BHive.Operation<T>
io.bdeploy.bhive.BHive.TransactedOperation<TransferStatistics>
io.bdeploy.bhive.op.ObjectReadOperation
- All Implemented Interfaces:
BHiveExecution,Callable<TransferStatistics>
Reads one or more objects from a stream and inserts them into the local hive.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecutes the operation.stream(InputStream input) The stream to read the objects 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
-
ObjectReadOperation
public ObjectReadOperation()
-
-
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<TransferStatistics>- Throws:
Exception
-
stream
The stream to read the objects from. The stream is closed at the end of the operation
-