Class TruncateTranslogAction

java.lang.Object
org.elasticsearch.index.translog.TruncateTranslogAction

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

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

    Constructors 
    Constructor Description
    TruncateTranslogAction​(org.elasticsearch.common.xcontent.NamedXContentRegistry namedXContentRegistry)  
  • Method Summary

    Modifier and Type Method Description
    void execute​(org.elasticsearch.cli.Terminal terminal, ShardPath shardPath, org.apache.lucene.store.Directory indexDirectory)  
    org.elasticsearch.common.collect.Tuple<RemoveCorruptedShardDataCommand.CleanStatus,​java.lang.String> getCleanStatus​(ShardPath shardPath, ClusterState clusterState, 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 Details

    • logger

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

    • TruncateTranslogAction

      public TruncateTranslogAction​(org.elasticsearch.common.xcontent.NamedXContentRegistry namedXContentRegistry)
  • Method Details

    • getCleanStatus

      public org.elasticsearch.common.collect.Tuple<RemoveCorruptedShardDataCommand.CleanStatus,​java.lang.String> getCleanStatus​(ShardPath shardPath, ClusterState clusterState, org.apache.lucene.store.Directory indexDirectory) throws java.io.IOException
      Throws:
      java.io.IOException
    • execute

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