Class WalChecker


  • public class WalChecker
    extends java.lang.Object
    WalChecker verifies that whether all insert ahead logs in the WAL folder are recognizable.
    • Constructor Summary

      Constructors 
      Constructor Description
      WalChecker​(java.lang.String walFolder)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.io.File> doCheck()
      check the root wal dir and find the damaged files
      static void main​(java.lang.String[] args)  
      static void report​(java.util.List<java.io.File> failedFiles)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WalChecker

        public WalChecker​(java.lang.String walFolder)
    • Method Detail

      • doCheck

        public java.util.List<java.io.File> doCheck()
                                             throws SystemCheckException
        check the root wal dir and find the damaged files
        Returns:
        a list of damaged files.
        Throws:
        SystemCheckException - if the root wal dir does not exist.
      • report

        public static void report​(java.util.List<java.io.File> failedFiles)