Class ValidateAndFixPBFile


  • public class ValidateAndFixPBFile
    extends Object
    Validate every line in a PB file by unmarshalling it and accessing the timestamp. If there are any exceptions, then copy only the events that can be unmarshalled correctly and are monotonically sequenced correctly to a temporary file and then replace the original file with the temporary file. If the -b option is specified; then the original file is moved to a new file with a .bak. extension.
    Author:
    mshankar
    • Constructor Detail

      • ValidateAndFixPBFile

        public ValidateAndFixPBFile()
    • Method Detail

      • fixPBFile

        public static void fixPBFile​(Path path,
                                     boolean verboseMode,
                                     boolean makeBackups)