org.elasticsearch.index.service
Class InternalIndexService
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.service.InternalIndexService
- All Implemented Interfaces:
- Iterable<IndexShard>, IndexComponent, IndexService
public class InternalIndexService
- extends AbstractIndexComponent
- implements IndexService
Constructor Summary |
InternalIndexService(Injector injector,
Index index,
Settings indexSettings,
NodeEnvironment nodeEnv,
ThreadPool threadPool,
PercolatorService percolatorService,
AnalysisService analysisService,
MapperService mapperService,
IndexQueryParserService queryParserService,
SimilarityService similarityService,
IndexAliasesService aliasesService,
IndexCache indexCache,
IndexEngine indexEngine,
IndexGateway indexGateway,
IndexStore indexStore,
IndexSettingsService settingsService)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InternalIndexService
@Inject
public InternalIndexService(Injector injector,
Index index,
@IndexSettings
Settings indexSettings,
NodeEnvironment nodeEnv,
ThreadPool threadPool,
PercolatorService percolatorService,
AnalysisService analysisService,
MapperService mapperService,
IndexQueryParserService queryParserService,
SimilarityService similarityService,
IndexAliasesService aliasesService,
IndexCache indexCache,
IndexEngine indexEngine,
IndexGateway indexGateway,
IndexStore indexStore,
IndexSettingsService settingsService)
numberOfShards
public int numberOfShards()
- Specified by:
numberOfShards
in interface IndexService
iterator
public com.google.common.collect.UnmodifiableIterator<IndexShard> iterator()
- Specified by:
iterator
in interface Iterable<IndexShard>
hasShard
public boolean hasShard(int shardId)
- Specified by:
hasShard
in interface IndexService
shard
public IndexShard shard(int shardId)
- Specified by:
shard
in interface IndexService
shardSafe
public IndexShard shardSafe(int shardId)
throws IndexShardMissingException
- Specified by:
shardSafe
in interface IndexService
- Throws:
IndexShardMissingException
shardIds
public com.google.common.collect.ImmutableSet<Integer> shardIds()
- Specified by:
shardIds
in interface IndexService
injector
public Injector injector()
- Specified by:
injector
in interface IndexService
gateway
public IndexGateway gateway()
- Specified by:
gateway
in interface IndexService
settingsService
public IndexSettingsService settingsService()
- Specified by:
settingsService
in interface IndexService
store
public IndexStore store()
- Specified by:
store
in interface IndexService
cache
public IndexCache cache()
- Specified by:
cache
in interface IndexService
percolateService
public PercolatorService percolateService()
- Specified by:
percolateService
in interface IndexService
analysisService
public AnalysisService analysisService()
- Specified by:
analysisService
in interface IndexService
mapperService
public MapperService mapperService()
- Specified by:
mapperService
in interface IndexService
queryParserService
public IndexQueryParserService queryParserService()
- Specified by:
queryParserService
in interface IndexService
similarityService
public SimilarityService similarityService()
- Specified by:
similarityService
in interface IndexService
aliasesService
public IndexAliasesService aliasesService()
- Specified by:
aliasesService
in interface IndexService
engine
public IndexEngine engine()
- Specified by:
engine
in interface IndexService
close
public void close(boolean delete,
String reason,
@Nullable
Executor executor)
shardInjector
public Injector shardInjector(int shardId)
throws ElasticSearchException
- Specified by:
shardInjector
in interface IndexService
- Throws:
ElasticSearchException
shardInjectorSafe
public Injector shardInjectorSafe(int shardId)
throws IndexShardMissingException
- Specified by:
shardInjectorSafe
in interface IndexService
- Throws:
IndexShardMissingException
createShard
public IndexShard createShard(int sShardId)
throws ElasticSearchException
- Specified by:
createShard
in interface IndexService
- Throws:
ElasticSearchException
cleanShard
public void cleanShard(int shardId,
String reason)
throws ElasticSearchException
- Description copied from interface:
IndexService
- Cleans the shard locally, does not touch the gateway!.
- Specified by:
cleanShard
in interface IndexService
- Throws:
ElasticSearchException
removeShard
public void removeShard(int shardId,
String reason)
throws ElasticSearchException
- Description copied from interface:
IndexService
- Removes the shard, does not delete local data or the gateway.
- Specified by:
removeShard
in interface IndexService
- Throws:
ElasticSearchException
Copyright © 2009-2012. All Rights Reserved.