Package com.yahoo.search.searchchain
Class SearchChainRegistry
- java.lang.Object
-
- com.yahoo.component.provider.ComponentRegistry<com.yahoo.component.chain.Chain<T>>
-
- com.yahoo.processing.execution.chain.ChainRegistry<Searcher>
-
- com.yahoo.search.searchchain.SearchChainRegistry
-
public class SearchChainRegistry extends com.yahoo.processing.execution.chain.ChainRegistry<Searcher>
Contains a reference to all currently known search chains. Searchers can be fetched from this from multiple threads.A registry can exist in two states:
- not frozen - in this state it can be edited freely by calling
register(com.yahoo.component.chain.Chain<com.yahoo.search.Searcher>)
- frozen - in this state any attempt at modification throws an IlegalStateException
- Author:
- bratseth
- not frozen - in this state it can be edited freely by calling
-
-
Constructor Summary
Constructors Constructor Description SearchChainRegistry()
SearchChainRegistry(com.yahoo.component.provider.ComponentRegistry<? extends com.yahoo.component.AbstractComponent> allComponentRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
freeze()
com.yahoo.component.chain.Chain<Searcher>
getChain(com.yahoo.component.ComponentId id)
com.yahoo.component.chain.Chain<Searcher>
getChain(String componentSpecification)
SearchChain
getComponent(com.yahoo.component.ComponentId id)
SearchChain
getComponent(com.yahoo.component.ComponentSpecification specification)
SearchChain
getComponent(String componentSpecification)
SearcherRegistry
getSearcherRegistry()
void
register(com.yahoo.component.chain.Chain<Searcher> component)
com.yahoo.component.chain.Chain<Searcher>
unregister(com.yahoo.component.chain.Chain<Searcher> component)
-
-
-
Method Detail
-
freeze
public void freeze()
- Overrides:
freeze
in classcom.yahoo.component.provider.ComponentRegistry<com.yahoo.component.chain.Chain<Searcher>>
-
register
public void register(com.yahoo.component.chain.Chain<Searcher> component)
-
unregister
public com.yahoo.component.chain.Chain<Searcher> unregister(com.yahoo.component.chain.Chain<Searcher> component)
-
getSearcherRegistry
public SearcherRegistry getSearcherRegistry()
-
getComponent
public SearchChain getComponent(com.yahoo.component.ComponentId id)
- Overrides:
getComponent
in classcom.yahoo.component.provider.ComponentRegistry<com.yahoo.component.chain.Chain<Searcher>>
-
getComponent
public SearchChain getComponent(com.yahoo.component.ComponentSpecification specification)
- Overrides:
getComponent
in classcom.yahoo.component.provider.ComponentRegistry<com.yahoo.component.chain.Chain<Searcher>>
-
getChain
public final com.yahoo.component.chain.Chain<Searcher> getChain(String componentSpecification)
-
getChain
public final com.yahoo.component.chain.Chain<Searcher> getChain(com.yahoo.component.ComponentId id)
-
getComponent
public SearchChain getComponent(String componentSpecification)
- Overrides:
getComponent
in classcom.yahoo.component.provider.ComponentRegistry<com.yahoo.component.chain.Chain<Searcher>>
-
-