Class TruncateTranslogAction


  • public class TruncateTranslogAction
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.apache.logging.log4j.Logger logger  
    • Method Summary

      Modifier and Type Method Description
      void execute​(Terminal terminal, ShardPath shardPath, org.apache.lucene.store.Directory indexDirectory)  
      static java.util.Set<java.nio.file.Path> filesInDirectory​(java.nio.file.Path directory)
      Return a Set of all files in a given directory
      Tuple<RemoveCorruptedShardDataCommand.CleanStatus,​java.lang.String> getCleanStatus​(ShardPath shardPath, org.apache.lucene.store.Directory indexDirectory)  
      • Methods inherited from class java.lang.Object

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

      • logger

        protected static final org.apache.logging.log4j.Logger logger
    • Constructor Detail

    • Method Detail

      • execute

        public void execute​(Terminal terminal,
                            ShardPath shardPath,
                            org.apache.lucene.store.Directory indexDirectory)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • filesInDirectory

        public static java.util.Set<java.nio.file.Path> filesInDirectory​(java.nio.file.Path directory)
                                                                  throws java.io.IOException
        Return a Set of all files in a given directory
        Throws:
        java.io.IOException