public class IndexShardGatewayService extends AbstractIndexShardComponentimplements CloseableIndexComponent
| Modifier and Type | Class and Description |
|---|---|
static interface |
IndexShardGatewayService
|
componentSettings, indexSettings, logger, shardId| Constructor and Description |
|---|
IndexShardGatewayService(ShardId
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the index component.
|
void |
recover(boolean indexShouldExists, IndexShardGatewayService
Recovers the state of the shard from the gateway.
|
void |
routingStateChanged()
Should be called when the shard routing state has changed (note, after the state has been set on the shard).
|
indexSettings, nodeName, shardId@Inject public IndexShardGatewayService(ShardIdshardId, @IndexSettings Settings indexSettings, ThreadPool threadPool, IndexShard indexShard, IndexShardGateway shardGateway, IndexShardSnapshotAndRestoreService snapshotService, ClusterService clusterService)
public void routingStateChanged()
public void recover(boolean indexShouldExists,
IndexShardGatewayService.RecoveryListener listener)
throws IndexShardGatewayRecoveryException,
IgnoreGatewayRecoveryException
public void close()
CloseableIndexComponent