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
All Methods Static Methods Instance Methods Concrete Methods 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 directoryTuple<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
-
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
-
-