Class EntryCopierImpl.BatchImpl
java.lang.Object
org.apache.bookkeeper.bookie.datainteg.EntryCopierImpl.BatchImpl
- All Implemented Interfaces:
EntryCopier.Batch
- Enclosing class:
- EntryCopierImpl
-
Constructor Summary
ConstructorsConstructorDescriptionBatchImpl(BookieId bookieId, long ledgerId, LedgerMetadata metadata, EntryCopierImpl.SinBin sinBin) -
Method Summary
Modifier and TypeMethodDescriptioncopyFromAvailable(long entryId) Copy an entry from a remote bookie and store it locally.(package private) CompletableFuture<io.netty.buffer.ByteBuf>fetchEntry(long entryId) (package private) voidnotifyBookieError(BookieId bookie)
-
Constructor Details
-
BatchImpl
BatchImpl(BookieId bookieId, long ledgerId, LedgerMetadata metadata, EntryCopierImpl.SinBin sinBin)
-
-
Method Details
-
notifyBookieError
-
copyFromAvailable
Description copied from interface:EntryCopier.BatchCopy an entry from a remote bookie and store it locally.- Specified by:
copyFromAvailablein interfaceEntryCopier.Batch- Returns:
- the number of bytes copied.
-
fetchEntry
-