Class VespaDomBuilder
- java.lang.Object
-
- com.yahoo.vespa.model.builder.VespaModelBuilder
-
- com.yahoo.vespa.model.builder.xml.dom.VespaDomBuilder
-
public class VespaDomBuilder extends VespaModelBuilder
Builds Vespa model components using the w3c dom api- Author:
- vegardh
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VespaDomBuilder.DomConfigProducerBuilder<T extends AbstractConfigProducer>
Base class for builders of producers using DOM.static class
VespaDomBuilder.DomRootBuilder
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
Allocated_MEMORY_ATTRIB_NAME
static java.lang.String
CORE_ON_OOM
static java.lang.String
CPU_SOCKET_AFFINITY_ATTRIB_NAME
static java.lang.String
GC_OPTIONS
static java.lang.String
JVM_GC_OPTIONS
static java.lang.String
JVM_OPTIONS
static java.lang.String
JVMARGS_ATTRIB_NAME
static java.util.logging.Logger
log
static java.lang.String
MMAP_NOCORE_LIMIT
static java.lang.String
NO_VESPAMALLOC
static java.lang.String
OPTIONS
static java.lang.String
PRELOAD_ATTRIB_NAME
static java.lang.String
VESPAMALLOC
static java.lang.String
VESPAMALLOC_DEBUG
static java.lang.String
VESPAMALLOC_DEBUG_STACKTRACE
-
Constructor Summary
Constructors Constructor Description VespaDomBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ServiceCluster>
getClusters(DeployState deployState, AbstractConfigProducer parent)
static java.util.List<java.lang.String>
getHostAliases(org.w3c.dom.NodeList hostAliases)
Get all aliases for one host from a list of 'alias' xml nodes.ApplicationConfigProducerRoot
getRoot(java.lang.String name, DeployState deployState, AbstractConfigProducer parent)
static int
getXmlWantedPort(org.w3c.dom.Element spec)
void
postProc(com.yahoo.config.application.api.DeployLogger deployLogger, AbstractConfigProducer root, ConfigModelRepo configModelRepo)
Processing that requires access across different plugins
-
-
-
Field Detail
-
JVMARGS_ATTRIB_NAME
public static final java.lang.String JVMARGS_ATTRIB_NAME
- See Also:
- Constant Field Values
-
JVM_OPTIONS
public static final java.lang.String JVM_OPTIONS
- See Also:
- Constant Field Values
-
OPTIONS
public static final java.lang.String OPTIONS
- See Also:
- Constant Field Values
-
JVM_GC_OPTIONS
public static final java.lang.String JVM_GC_OPTIONS
- See Also:
- Constant Field Values
-
GC_OPTIONS
public static final java.lang.String GC_OPTIONS
- See Also:
- Constant Field Values
-
PRELOAD_ATTRIB_NAME
public static final java.lang.String PRELOAD_ATTRIB_NAME
- See Also:
- Constant Field Values
-
MMAP_NOCORE_LIMIT
public static final java.lang.String MMAP_NOCORE_LIMIT
- See Also:
- Constant Field Values
-
CORE_ON_OOM
public static final java.lang.String CORE_ON_OOM
- See Also:
- Constant Field Values
-
NO_VESPAMALLOC
public static final java.lang.String NO_VESPAMALLOC
- See Also:
- Constant Field Values
-
VESPAMALLOC
public static final java.lang.String VESPAMALLOC
- See Also:
- Constant Field Values
-
VESPAMALLOC_DEBUG
public static final java.lang.String VESPAMALLOC_DEBUG
- See Also:
- Constant Field Values
-
VESPAMALLOC_DEBUG_STACKTRACE
public static final java.lang.String VESPAMALLOC_DEBUG_STACKTRACE
- See Also:
- Constant Field Values
-
CPU_SOCKET_AFFINITY_ATTRIB_NAME
public static final java.lang.String CPU_SOCKET_AFFINITY_ATTRIB_NAME
- See Also:
- Constant Field Values
-
Allocated_MEMORY_ATTRIB_NAME
public static final java.lang.String Allocated_MEMORY_ATTRIB_NAME
- See Also:
- Constant Field Values
-
log
public static final java.util.logging.Logger log
-
-
Method Detail
-
getHostAliases
public static java.util.List<java.lang.String> getHostAliases(org.w3c.dom.NodeList hostAliases)
Get all aliases for one host from a list of 'alias' xml nodes.- Parameters:
hostAliases
- List of xml nodes, each representing one hostalias- Returns:
- a list of alias strings.
-
getRoot
public ApplicationConfigProducerRoot getRoot(java.lang.String name, DeployState deployState, AbstractConfigProducer parent)
- Specified by:
getRoot
in classVespaModelBuilder
-
getXmlWantedPort
public static int getXmlWantedPort(org.w3c.dom.Element spec)
- Parameters:
spec
- The element containing the xml specification for this Service.- Returns:
- the user's desired port, which is retrieved from the xml spec.
-
postProc
public void postProc(com.yahoo.config.application.api.DeployLogger deployLogger, AbstractConfigProducer root, ConfigModelRepo configModelRepo)
Processing that requires access across different plugins- Specified by:
postProc
in classVespaModelBuilder
- Parameters:
root
- root config producerconfigModelRepo
- aConfigModelRepo
-
getClusters
public java.util.List<ServiceCluster> getClusters(DeployState deployState, AbstractConfigProducer parent)
- Specified by:
getClusters
in classVespaModelBuilder
-
-