public class IndexShardSnapshotAndRestoreService extends AbstractIndexShardComponent
componentSettings, indexSettings, logger, shardId| Constructor and Description |
|---|
IndexShardSnapshotAndRestoreService(ShardId shardId,
Settings indexSettings,
IndexShard indexShard,
RepositoriesService repositoriesService,
RestoreService restoreService) |
| Modifier and Type | Method and Description |
|---|---|
void |
restore(RecoveryState recoveryState)
Restores shard from
RestoreSource associated with this shard in routing table |
void |
snapshot(SnapshotId snapshotId,
IndexShardSnapshotStatus snapshotStatus)
Creates shard snapshot
|
indexSettings, nodeName, shardId@Inject public IndexShardSnapshotAndRestoreService(ShardId shardId, @IndexSettings Settings indexSettings, IndexShard indexShard, RepositoriesService repositoriesService, RestoreService restoreService)
public void snapshot(SnapshotId snapshotId, IndexShardSnapshotStatus snapshotStatus)
snapshotId - snapshot idsnapshotStatus - snapshot statuspublic void restore(RecoveryState recoveryState)
RestoreSource associated with this shard in routing tablerecoveryState - recovery stateCopyright © 2009–2016. All rights reserved.