Class PageTemplates

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

    public class PageTemplates
    extends Object
    implements 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 Detail

      • PageTemplates

        public PageTemplates​(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
      • getConfig

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