Class CRC32CDigestManager
- java.lang.Object
-
- org.apache.bookkeeper.proto.checksum.DigestManager
-
- org.apache.bookkeeper.proto.checksum.CRC32CDigestManager
-
class CRC32CDigestManager extends DigestManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.bookkeeper.proto.checksum.DigestManager
DigestManager.RecoveryData
-
-
Field Summary
-
Fields inherited from class org.apache.bookkeeper.proto.checksum.DigestManager
LAC_METADATA_LENGTH, ledgerId, macCodeLength, METADATA_LENGTH, useV2Protocol
-
-
Constructor Summary
Constructors Constructor Description CRC32CDigestManager(long ledgerId, boolean useV2Protocol, io.netty.buffer.ByteBufAllocator allocator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
acceptsMemoryAddressBuffer()
(package private) int
getMacCodeLength()
(package private) int
internalUpdate(int digest, byte[] buffer, int offset, int len)
(package private) int
internalUpdate(int digest, io.netty.buffer.ByteBuf data, int offset, int len)
(package private) boolean
isInt32Digest()
(package private) void
populateValueAndReset(int digest, io.netty.buffer.ByteBuf buf)
-
Methods inherited from class org.apache.bookkeeper.proto.checksum.DigestManager
computeDigestAndPackageForSending, computeDigestAndPackageForSendingLac, generateMasterKey, instantiate, update, verifyDigestAndReturnData, verifyDigestAndReturnLac, verifyDigestAndReturnLastConfirmed
-
-
-
-
Method Detail
-
getMacCodeLength
int getMacCodeLength()
- Specified by:
getMacCodeLength
in classDigestManager
-
isInt32Digest
boolean isInt32Digest()
- Specified by:
isInt32Digest
in classDigestManager
-
populateValueAndReset
void populateValueAndReset(int digest, io.netty.buffer.ByteBuf buf)
- Specified by:
populateValueAndReset
in classDigestManager
-
internalUpdate
int internalUpdate(int digest, io.netty.buffer.ByteBuf data, int offset, int len)
- Specified by:
internalUpdate
in classDigestManager
-
internalUpdate
int internalUpdate(int digest, byte[] buffer, int offset, int len)
- Specified by:
internalUpdate
in classDigestManager
-
acceptsMemoryAddressBuffer
boolean acceptsMemoryAddressBuffer()
- Specified by:
acceptsMemoryAddressBuffer
in classDigestManager
-
-