public class LocalIndexShardGateway extends AbstractIndexShardComponent implements IndexShardGateway
| Modifier and Type | Field and Description |
|---|---|
static String |
SYNC_INTERVAL |
componentSettings, indexSettings, logger, shardId| Constructor and Description |
|---|
LocalIndexShardGateway(ShardId shardId,
Settings indexSettings,
ThreadPool threadPool,
MappingUpdatedAction mappingUpdatedAction,
IndexService indexService,
IndexShard indexShard) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the index component.
|
void |
recover(boolean indexShouldExists,
RecoveryState recoveryState)
Recovers the state of the shard from the gateway.
|
String |
toString() |
String |
type() |
indexSettings, nodeName, shardIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitindexSettings, shardIdpublic static final String SYNC_INTERVAL
@Inject public LocalIndexShardGateway(ShardId shardId, @IndexSettings Settings indexSettings, ThreadPool threadPool, MappingUpdatedAction mappingUpdatedAction, IndexService indexService, IndexShard indexShard)
public void recover(boolean indexShouldExists,
RecoveryState recoveryState)
throws IndexShardGatewayRecoveryException
IndexShardGatewayrecover in interface IndexShardGatewayIndexShardGatewayRecoveryExceptionpublic String type()
type in interface IndexShardGatewaypublic void close()
CloseableIndexComponentclose in interface Closeableclose in interface AutoCloseableclose in interface CloseableIndexComponentCopyright © 2009–2016. All rights reserved.