org.apache.hadoop.hbase.io.hfile
Class ChecksumUtil

java.lang.Object
  extended by org.apache.hadoop.hbase.io.hfile.ChecksumUtil

public class ChecksumUtil
extends Object

Utility methods to compute and validate checksums.


Constructor Summary
ChecksumUtil()
           
 
Method Summary
static void generateExceptionForChecksumFailureForTest(boolean value)
          Mechanism to throw an exception in case of hbase checksum failure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChecksumUtil

public ChecksumUtil()
Method Detail

generateExceptionForChecksumFailureForTest

public static void generateExceptionForChecksumFailureForTest(boolean value)
Mechanism to throw an exception in case of hbase checksum failure. This is used by unit tests only.

Parameters:
value - Setting this to true will cause hbase checksum verification failures to generate exceptions.


Copyright © 2015 The Apache Software Foundation. All Rights Reserved.