com.sleepycat.je.log
Class ChecksumValidator

java.lang.Object
  extended bycom.sleepycat.je.log.ChecksumValidator

class ChecksumValidator
extends Object

Checksum validator is used to check checksums on log entries.


Constructor Summary
(package private) ChecksumValidator()
           
 
Method Summary
(package private)  void reset()
           
(package private)  void update(EnvironmentImpl env, ByteBuffer buf, int length)
          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
 

Constructor Detail

ChecksumValidator

ChecksumValidator()
Method Detail

reset

void reset()

update

void update(EnvironmentImpl env,
            ByteBuffer buf,
            int length)
      throws DbChecksumException
Add this byte buffer to the checksum. Assume the byte buffer is already positioned at the data.

Parameters:
buf - target buffer
length - 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 Sleepycat, Inc. All Rights Reserved.