Class 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:

    Registries start in the first state, moves to the second on calling freeze and stays in that state for the rest of their lifetime.
    Author:
    bratseth
    • 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​(java.lang.String componentSpecification)  
      SearchChain getComponent​(com.yahoo.component.ComponentId id)  
      SearchChain getComponent​(com.yahoo.component.ComponentSpecification specification)  
      SearchChain getComponent​(java.lang.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)  
      • Methods inherited from class com.yahoo.component.provider.ComponentRegistry

        allComponents, allComponentsById, findBestMatch, getComponentCount, isFrozen, register, singleton, unregister
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SearchChainRegistry

        public SearchChainRegistry()
      • SearchChainRegistry

        public SearchChainRegistry​(com.yahoo.component.provider.ComponentRegistry<? extends com.yahoo.component.AbstractComponent> allComponentRegistry)
    • Method Detail

      • freeze

        public void freeze()
        Overrides:
        freeze in class com.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)
      • getComponent

        public SearchChain getComponent​(com.yahoo.component.ComponentId id)
        Overrides:
        getComponent in class com.yahoo.component.provider.ComponentRegistry<com.yahoo.component.chain.Chain<Searcher>>
      • getComponent

        public SearchChain getComponent​(com.yahoo.component.ComponentSpecification specification)
        Overrides:
        getComponent in class com.yahoo.component.provider.ComponentRegistry<com.yahoo.component.chain.Chain<Searcher>>
      • getChain

        public final com.yahoo.component.chain.Chain<Searcher> getChain​(java.lang.String componentSpecification)
      • getChain

        public final com.yahoo.component.chain.Chain<Searcher> getChain​(com.yahoo.component.ComponentId id)
      • getComponent

        public SearchChain getComponent​(java.lang.String componentSpecification)
        Overrides:
        getComponent in class com.yahoo.component.provider.ComponentRegistry<com.yahoo.component.chain.Chain<Searcher>>