Package org.elasticsearch.index.engine
Class TranslogHandler
java.lang.Object
org.elasticsearch.index.engine.TranslogHandler
- All Implemented Interfaces:
org.elasticsearch.index.engine.Engine.TranslogRecoveryRunner
public class TranslogHandler
extends Object
implements org.elasticsearch.index.engine.Engine.TranslogRecoveryRunner
-
Constructor Summary
ConstructorsConstructorDescriptionTranslogHandler
(org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.index.IndexSettings indexSettings) -
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.index.engine.Engine.Operation
convertToEngineOp
(org.elasticsearch.index.translog.Translog.Operation operation, org.elasticsearch.index.engine.Engine.Operation.Origin origin) int
run
(org.elasticsearch.index.engine.Engine engine, org.elasticsearch.index.translog.Translog.Snapshot snapshot)
-
Constructor Details
-
TranslogHandler
public TranslogHandler(org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.index.IndexSettings indexSettings)
-
-
Method Details
-
run
public int run(org.elasticsearch.index.engine.Engine engine, org.elasticsearch.index.translog.Translog.Snapshot snapshot) throws IOException - Specified by:
run
in interfaceorg.elasticsearch.index.engine.Engine.TranslogRecoveryRunner
- Throws:
IOException
-
convertToEngineOp
public org.elasticsearch.index.engine.Engine.Operation convertToEngineOp(org.elasticsearch.index.translog.Translog.Operation operation, org.elasticsearch.index.engine.Engine.Operation.Origin origin)
-