Class PageTemplates

java.lang.Object
com.yahoo.vespa.model.container.search.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:
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    create(com.yahoo.config.application.api.ApplicationPackage applicationPackage)
    Creates from an application package.
    com.yahoo.search.pagetemplates.PageTemplatesConfig
    The config produced by this
    void
    getConfig(com.yahoo.search.pagetemplates.PageTemplatesConfig.Builder builder)
     
     
    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 Details

    • PageTemplates

      public PageTemplates(List<com.yahoo.io.reader.NamedReader> readers)
  • Method Details

    • 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 String toString()
      Overrides:
      toString in class Object
    • getConfig

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