Package org.elasticsearch.index.translog
Class TruncateTranslogAction
java.lang.Object
org.elasticsearch.index.translog.TruncateTranslogAction
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTruncateTranslogAction(org.elasticsearch.common.xcontent.NamedXContentRegistry namedXContentRegistry)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute(org.elasticsearch.cli.Terminal terminal, ShardPath shardPath, org.apache.lucene.store.Directory indexDirectory)
org.elasticsearch.core.Tuple<RemoveCorruptedShardDataCommand.CleanStatus,String>
getCleanStatus(ShardPath shardPath, ClusterState clusterState, org.apache.lucene.store.Directory indexDirectory)
-
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.core.Tuple<RemoveCorruptedShardDataCommand.CleanStatus,String> getCleanStatus(ShardPath shardPath, ClusterState clusterState, org.apache.lucene.store.Directory indexDirectory) throws IOException- Throws:
IOException
-
execute
public void execute(org.elasticsearch.cli.Terminal terminal, ShardPath shardPath, org.apache.lucene.store.Directory indexDirectory) throws IOException- Throws:
IOException
-