Class DummyDigestManager
- java.lang.Object
-
- org.apache.bookkeeper.proto.checksum.DigestManager
-
- org.apache.bookkeeper.proto.checksum.DummyDigestManager
-
public class DummyDigestManager extends DigestManager
This class provides a noop digest implementation.
-
-
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 DummyDigestManager(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 buffer, int offset, int len)
(package private) boolean
isInt32Digest()
(package private) void
populateValueAndReset(int digest, io.netty.buffer.ByteBuf buffer)
-
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
-
internalUpdate
int internalUpdate(int digest, io.netty.buffer.ByteBuf buffer, 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
-
populateValueAndReset
void populateValueAndReset(int digest, io.netty.buffer.ByteBuf buffer)
- Specified by:
populateValueAndReset
in classDigestManager
-
isInt32Digest
boolean isInt32Digest()
- Specified by:
isInt32Digest
in classDigestManager
-
acceptsMemoryAddressBuffer
boolean acceptsMemoryAddressBuffer()
- Specified by:
acceptsMemoryAddressBuffer
in classDigestManager
-
-