Class VespaDomBuilder


  • public class VespaDomBuilder
    extends VespaModelBuilder
    Builds Vespa model components using the w3c dom api
    Author:
    vegardh
    • Field Detail

      • JVMARGS_ATTRIB_NAME

        public static final java.lang.String JVMARGS_ATTRIB_NAME
        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
      • 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
    • Constructor Detail

      • VespaDomBuilder

        public VespaDomBuilder()
    • 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.
      • 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.