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
IndexShardRecoveryException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2009–2016. All rights reserved.