public class StoreRecoveryService extends AbstractIndexShardComponent implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static interface |
StoreRecoveryService.RecoveryListener |
deprecationLogger, indexSettings, logger, shardId| Constructor and Description |
|---|
StoreRecoveryService(ShardId shardId,
IndexSettingsService indexSettingsService,
ThreadPool threadPool,
MappingUpdatedAction mappingUpdatedAction,
ClusterService clusterService,
RepositoriesService repositoriesService,
RestoreService restoreService) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
recover(IndexShard indexShard,
boolean indexShouldExists,
StoreRecoveryService.RecoveryListener listener)
Recovers the state of the shard from the gateway.
|
indexSettings, nodeName, shardId@Inject public StoreRecoveryService(ShardId shardId, IndexSettingsService indexSettingsService, ThreadPool threadPool, MappingUpdatedAction mappingUpdatedAction, ClusterService clusterService, RepositoriesService repositoriesService, RestoreService restoreService)
public void recover(IndexShard indexShard, boolean indexShouldExists, StoreRecoveryService.RecoveryListener listener) throws IndexShardRecoveryException
IndexShardRecoveryExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2009–2017. All rights reserved.