org.elasticsearch.index.engine
Interface Engine.RecoveryHandler

Enclosing interface:
Engine

public static interface Engine.RecoveryHandler

Recovery allow to start the recovery process. It is built of three phases.

The first phase allows to take a snapshot of the master index. Once this is taken, no commit operations are effectively allowed on the index until the recovery phases are through.

The seconds phase takes a snapshot of the current transaction log.

The last phase returns the remaining transaction log. During this phase, no dirty operations are allowed on the index.


Method Summary
 void phase1(SnapshotIndexCommit snapshot)
           
 void phase2(Translog.Snapshot snapshot)
           
 void phase3(Translog.Snapshot snapshot)
           
 

Method Detail

phase1

void phase1(SnapshotIndexCommit snapshot)
            throws ElasticSearchException
Throws:
ElasticSearchException

phase2

void phase2(Translog.Snapshot snapshot)
            throws ElasticSearchException
Throws:
ElasticSearchException

phase3

void phase3(Translog.Snapshot snapshot)
            throws ElasticSearchException
Throws:
ElasticSearchException