public class IndexShardGatewayService extends AbstractIndexShardComponent implements CloseableIndexComponent
Modifier and Type | Class and Description |
---|---|
static interface |
IndexShardGatewayService.RecoveryListener |
componentSettings, indexSettings, logger, shardId
Constructor and Description |
---|
IndexShardGatewayService(ShardId shardId,
Settings indexSettings,
ThreadPool threadPool,
IndexShard indexShard,
IndexShardGateway shardGateway,
IndexShardSnapshotAndRestoreService snapshotService,
ClusterService clusterService) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the index component.
|
void |
recover(boolean indexShouldExists,
IndexShardGatewayService.RecoveryListener listener)
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(ShardId shardId, @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
close
in interface Closeable
close
in interface AutoCloseable
close
in interface CloseableIndexComponent
Copyright © 2009–2015. All rights reserved.