Class PageTemplates

  • All Implemented Interfaces:
    com.yahoo.config.ConfigInstance.Producer, com.yahoo.search.pagetemplates.PageTemplatesConfig.Producer, java.io.Serializable

    public class PageTemplates
    extends java.lang.Object
    implements java.io.Serializable, com.yahoo.search.pagetemplates.PageTemplatesConfig.Producer
    Owns the page templates to be handed to the qrs nodes. Owned by a container cluster.
    Author:
    bratseth
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PageTemplates​(java.util.List<com.yahoo.io.reader.NamedReader> readers)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static PageTemplates create​(com.yahoo.config.application.api.ApplicationPackage applicationPackage)
      Creates from an application package.
      com.yahoo.search.pagetemplates.PageTemplatesConfig getConfig()
      The config produced by this
      void getConfig​(com.yahoo.search.pagetemplates.PageTemplatesConfig.Builder builder)  
      java.lang.String toString()  
      static void validate​(com.yahoo.config.application.api.ApplicationPackage applicationPackage)
      Validates page templates in an application package.
      • Methods inherited from class java.lang.Object

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

      • PageTemplates

        public PageTemplates​(java.util.List<com.yahoo.io.reader.NamedReader> readers)
    • Method Detail

      • validate

        public static void validate​(com.yahoo.config.application.api.ApplicationPackage applicationPackage)
        Validates page templates in an application package. The passed readers will be closed.
      • create

        public static PageTemplates create​(com.yahoo.config.application.api.ApplicationPackage applicationPackage)
        Creates from an application package. The passed readers will be closed.
      • getConfig

        public void getConfig​(com.yahoo.search.pagetemplates.PageTemplatesConfig.Builder builder)
        Specified by:
        getConfig in interface com.yahoo.search.pagetemplates.PageTemplatesConfig.Producer
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getConfig

        public com.yahoo.search.pagetemplates.PageTemplatesConfig getConfig()
        The config produced by this
        Returns:
        page templates config