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
,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 thisvoid
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.
-
-
-
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 interfacecom.yahoo.search.pagetemplates.PageTemplatesConfig.Producer
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getConfig
public com.yahoo.search.pagetemplates.PageTemplatesConfig getConfig()
The config produced by this- Returns:
- page templates config
-
-