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

    Constructors
    Constructor
    Description
    TranslogHandler​(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.index.IndexSettings indexSettings)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TranslogHandler

      public TranslogHandler(org.elasticsearch.common.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 interface org.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)