public class LocalIndexShardGateway extends AbstractIndexShardComponent implements IndexShardGateway
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, shardId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
indexSettings, shardId
@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
IndexShardGateway
recover
in interface IndexShardGateway
IndexShardGatewayRecoveryException
public String type()
type
in interface IndexShardGateway
public void close()
CloseableIndexComponent
close
in interface Closeable
close
in interface AutoCloseable
close
in interface CloseableIndexComponent
Copyright © 2009–2015. All rights reserved.