Package org.elasticsearch.index.translog
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(NamedXContentRegistry namedXContentRegistry)
-
Method Summary
Modifier and Type Method Description void
execute(Terminal terminal, ShardPath shardPath, org.apache.lucene.store.Directory indexDirectory)
Tuple<RemoveCorruptedShardDataCommand.CleanStatus,java.lang.String>
getCleanStatus(ShardPath shardPath, org.apache.lucene.store.Directory indexDirectory)
-
-
-
Constructor Detail
-
TruncateTranslogAction
public TruncateTranslogAction(NamedXContentRegistry namedXContentRegistry)
-
-
Method Detail
-
getCleanStatus
public Tuple<RemoveCorruptedShardDataCommand.CleanStatus,java.lang.String> getCleanStatus(ShardPath shardPath, org.apache.lucene.store.Directory indexDirectory) throws java.io.IOException
- Throws:
java.io.IOException
-
-