com.sleepycat.je.log
Class ChecksumValidator
java.lang.Object
com.sleepycat.je.log.ChecksumValidator
class ChecksumValidator
- extends Object
Checksum validator is used to check checksums on log entries.
Method Summary |
(package private) void |
reset()
|
(package private) void |
update(EnvironmentImpl env,
ByteBuffer buf,
int length,
boolean anticipateChecksumErrors)
Add this byte buffer to the checksum. |
(package private) void |
validate(EnvironmentImpl env,
long expectedChecksum,
long lsn)
|
(package private) void |
validate(EnvironmentImpl env,
long expectedChecksum,
long fileNum,
long fileOffset,
boolean anticipateChecksumErrors)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChecksumValidator
ChecksumValidator()
reset
void reset()
update
void update(EnvironmentImpl env,
ByteBuffer buf,
int length,
boolean anticipateChecksumErrors)
throws DbChecksumException
- Add this byte buffer to the checksum. Assume the byte buffer is already
positioned at the data.
- Parameters:
buf
- target bufferlength
- of data
- Throws:
DbChecksumException
validate
void validate(EnvironmentImpl env,
long expectedChecksum,
long lsn)
throws DbChecksumException
- Throws:
DbChecksumException
validate
void validate(EnvironmentImpl env,
long expectedChecksum,
long fileNum,
long fileOffset,
boolean anticipateChecksumErrors)
throws DbChecksumException
- Throws:
DbChecksumException
Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.