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
-
Constructor Summary
ConstructorDescriptionSearchChainRegistry
(com.yahoo.component.provider.ComponentRegistry<? extends com.yahoo.component.AbstractComponent> allComponentRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoid
freeze()
final com.yahoo.component.chain.Chain<Searcher>
getChain
(com.yahoo.component.ComponentId id) final com.yahoo.component.chain.Chain<Searcher>
getComponent
(com.yahoo.component.ComponentId id) getComponent
(com.yahoo.component.ComponentSpecification specification) getComponent
(String componentSpecification) void
com.yahoo.component.chain.Chain<Searcher>
unregister
(com.yahoo.component.chain.Chain<Searcher> component) Methods inherited from class com.yahoo.component.provider.ComponentRegistry
allComponents, allComponentsById, findBestMatch, getComponentCount, isFrozen, register, singleton, unregister
-
Constructor Details
-
SearchChainRegistry
public SearchChainRegistry() -
SearchChainRegistry
public SearchChainRegistry(com.yahoo.component.provider.ComponentRegistry<? extends com.yahoo.component.AbstractComponent> allComponentRegistry)
-
-
Method Details
-
freeze
public void freeze()- Overrides:
freeze
in classcom.yahoo.component.provider.ComponentRegistry<com.yahoo.component.chain.Chain<Searcher>>
-
register
-
unregister
-
getSearcherRegistry
-
getComponent
- Overrides:
getComponent
in classcom.yahoo.component.provider.ComponentRegistry<com.yahoo.component.chain.Chain<Searcher>>
-
getComponent
- Overrides:
getComponent
in classcom.yahoo.component.provider.ComponentRegistry<com.yahoo.component.chain.Chain<Searcher>>
-
getChain
-
getChain
-
getComponent
- Overrides:
getComponent
in classcom.yahoo.component.provider.ComponentRegistry<com.yahoo.component.chain.Chain<Searcher>>
-