org.elasticsearch.index
Class AbstractIndexComponent

java.lang.Object
  extended by org.elasticsearch.index.AbstractIndexComponent
All Implemented Interfaces:
IndexComponent
Direct Known Subclasses:
AbstractCharFilterFactory, AbstractConcurrentMapFieldDataCache, AbstractIndexAnalyzerProvider, AbstractIndexStore, AbstractJvmQueryParserCache, AbstractSimilarityProvider, AbstractTokenFilterFactory, AbstractTokenizerFactory, AnalysisService, BlobStoreIndexGateway, DocumentMapperParser, IndexAliasesService, IndexCache, IndexQueryParserService, IndexServiceManagement, IndexSettingsService, InternalIndexService, LocalIndexGateway, MapperService, NoneBloomCache, NoneFieldDataCache, NoneFilterCache, NoneIndexGateway, NoneQueryParserCache, PercolatorExecutor, PercolatorService, ResidentQueryParserCache, RobinIndexEngine, SimilarityService, SimpleBloomCache, SimpleIdCache, WeightedFilterCache

public abstract class AbstractIndexComponent
extends Object
implements IndexComponent


Field Summary
protected  Settings componentSettings
           
protected  Index index
           
protected  Settings indexSettings
           
protected  ESLogger logger
           
 
Constructor Summary
protected AbstractIndexComponent(Index index, Settings indexSettings)
          Constructs a new index component, with the index name and its settings.
protected AbstractIndexComponent(Index index, Settings indexSettings, String prefixSettings)
          Constructs a new index component, with the index name and its settings, as well as settings prefix.
 
Method Summary
 Index index()
           
 String nodeName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final ESLogger logger

index

protected final Index index

indexSettings

protected final Settings indexSettings

componentSettings

protected final Settings componentSettings
Constructor Detail

AbstractIndexComponent

protected AbstractIndexComponent(Index index,
                                 @IndexSettings
                                 Settings indexSettings)
Constructs a new index component, with the index name and its settings.

Parameters:
index - The index name
indexSettings - The index settings

AbstractIndexComponent

protected AbstractIndexComponent(Index index,
                                 @IndexSettings
                                 Settings indexSettings,
                                 String prefixSettings)
Constructs a new index component, with the index name and its settings, as well as settings prefix.

Parameters:
index - The index name
indexSettings - The index settings
prefixSettings - A settings prefix (like "com.mycompany") to simplify extracting the component settings
Method Detail

index

public Index index()
Specified by:
index in interface IndexComponent

nodeName

public String nodeName()


Copyright © 2009-2012. All Rights Reserved.