Class FileRestoreContext

java.lang.Object
org.elasticsearch.repositories.blobstore.FileRestoreContext

public abstract class FileRestoreContext extends Object
This context will execute a file restore of the lucene files. It is primarily designed to be used to restore from some form of a snapshot. It will setup a new store, identify files that need to be copied for the source, and perform the copies. Implementers must implement the functionality of opening the underlying file streams for snapshotted lucene file.
  • Field Details

    • logger

      protected static final org.apache.logging.log4j.Logger logger
    • repositoryName

      protected final String repositoryName
    • recoveryState

      protected final RecoveryState recoveryState
    • snapshotId

      protected final SnapshotId snapshotId
    • shardId

      protected final ShardId shardId
  • Constructor Details

    • FileRestoreContext

      protected FileRestoreContext(String repositoryName, ShardId shardId, SnapshotId snapshotId, RecoveryState recoveryState)
      Constructs new restore context
      Parameters:
      shardId - shard id to restore into
      snapshotId - snapshot id
      recoveryState - recovery state to report progress
  • Method Details