org.elasticsearch.index
Class AbstractIndexComponent

java.lang.Object
  extended by org.elasticsearch.index.AbstractIndexComponent
All Implemented Interfaces:
IndexComponent
Direct Known Subclasses:
AbstractCharFilterFactory, AbstractConcurrentMapFieldDataCache, AbstractConcurrentMapFilterCache, AbstractIndexAnalyzerProvider, AbstractIndexStore, AbstractJvmQueryParserCache, AbstractSimilarityProvider, AbstractTokenFilterFactory, AbstractTokenizerFactory, AbstractWeightedFilterCache, AnalysisService, AndFilterParser, BlobStoreIndexGateway, BoolFilterParser, BoolQueryParser, BoostingQueryParser, ConstantScoreQueryParser, CustomBoostFactorQueryParser, CustomScoreQueryParser, DisMaxQueryParser, ExistsFilterParser, FieldMaskingSpanQueryParser, FieldQueryParser, FilteredQueryParser, FQueryFilterParser, FuzzyLikeThisFieldQueryParser, FuzzyLikeThisQueryParser, FuzzyQueryParser, GeoBoundingBoxFilterParser, GeoDistanceFilterParser, GeoDistanceRangeFilterParser, GeoPolygonFilterParser, HasChildFilterParser, HasChildQueryParser, IdsFilterParser, IdsQueryParser, IndexCache, IndexQueryParserService, IndexServiceManagement, IndexSettingsService, InternalIndexService, LimitFilterParser, LocalIndexGateway, MapperService, MatchAllFilterParser, MatchAllQueryParser, MissingFilterParser, MoreLikeThisFieldQueryParser, MoreLikeThisQueryParser, NoneBloomCache, NoneFieldDataCache, NoneFilterCache, NoneIndexGateway, NoneQueryParserCache, NotFilterParser, NumericRangeFilterParser, OrFilterParser, PercolatorExecutor, PercolatorService, PrefixFilterParser, PrefixQueryParser, QueryFilterParser, QueryStringQueryParser, RangeFilterParser, RangeQueryParser, RobinIndexEngine, ScriptFilterParser, SimilarityService, SimpleBloomCache, SimpleIdCache, SpanFirstQueryParser, SpanNearQueryParser, SpanNotQueryParser, SpanOrQueryParser, SpanTermQueryParser, TermFilterParser, TermQueryParser, TermsFilterParser, TermsQueryParser, TextQueryParser, TopChildrenQueryParser, TypeFilterParser, WildcardQueryParser, XContentDocumentMapperParser, XContentIndexQueryParser

public abstract class AbstractIndexComponent
extends java.lang.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, java.lang.String prefixSettings)
          Constructs a new index component, with the index name and its settings, as well as settings prefix.
 
Method Summary
 Index index()
           
 java.lang.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,
                                 java.lang.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 java.lang.String nodeName()