public interface IndexShardRepository
Repository
for more information.Modifier and Type | Method and Description |
---|---|
void |
restore(SnapshotId snapshotId,
ShardId shardId,
ShardId snapshotShardId,
RecoveryState recoveryState)
Restores snapshot of the shard.
|
void |
snapshot(SnapshotId snapshotId,
ShardId shardId,
SnapshotIndexCommit snapshotIndexCommit,
IndexShardSnapshotStatus snapshotStatus)
Creates a snapshot of the shard based on the index commit point.
|
IndexShardSnapshotStatus |
snapshotStatus(SnapshotId snapshotId,
ShardId shardId)
Retrieve shard snapshot status for the stored snapshot
|
void |
verify(String verificationToken)
Verifies repository settings on data node
|
void snapshot(SnapshotId snapshotId, ShardId shardId, SnapshotIndexCommit snapshotIndexCommit, IndexShardSnapshotStatus snapshotStatus)
Engine.snapshotIndex()
method.
IndexShardRepository implementations shouldn't release the snapshot index commit point. It is done by the method caller.
As snapshot process progresses, implementation of this method should update IndexShardSnapshotStatus
object and check
IndexShardSnapshotStatus.aborted()
to see if the snapshot process should be aborted.snapshotId
- snapshot idshardId
- shard to be snapshottedsnapshotIndexCommit
- commit pointsnapshotStatus
- snapshot statusvoid restore(SnapshotId snapshotId, ShardId shardId, ShardId snapshotShardId, RecoveryState recoveryState)
shardId
and snapshotShardId
are supplied.snapshotId
- snapshot idshardId
- shard id (in the current index)snapshotShardId
- shard id (in the snapshot)recoveryState
- recovery stateIndexShardSnapshotStatus snapshotStatus(SnapshotId snapshotId, ShardId shardId)
snapshotId
- snapshot idshardId
- shard idvoid verify(String verificationToken)
verificationToken
- value returned by Repository.startVerification()
Copyright © 2009–2015. All rights reserved.