Class HopServerConfig

  • All Implemented Interfaces:
    IXml

    public class HopServerConfig
    extends Object
    implements IXml
    • Constructor Detail

      • HopServerConfig

        public HopServerConfig()
      • HopServerConfig

        public HopServerConfig​(HopServer hopServer)
      • HopServerConfig

        public HopServerConfig​(String hostname,
                               int port,
                               int shutdownPort,
                               boolean joining)
    • Method Detail

      • setUpJettyOptions

        protected void setUpJettyOptions​(Node node)
        Set up jetty options to the system properties
        Parameters:
        node - The node to read settings from
      • parseJettyOptions

        protected Map<String,​String> parseJettyOptions​(Node node)
        Read and parse jetty options
        Parameters:
        node - that contains jetty options nodes
        Returns:
        map of not empty jetty options
      • getHopServer

        public HopServer getHopServer()
        Returns:
        the hop server.
        The user name and password defined in here are used to contact this server by the masters.
      • setHopServer

        public void setHopServer​(HopServer hopServer)
        Parameters:
        hopServer - the hop server details to set.
        The user name and password defined in here are used to contact this server by the masters.
      • isJoining

        public boolean isJoining()
        Returns:
        true if the webserver needs to join with the webserver threads (wait/block until finished)
      • setJoining

        public void setJoining​(boolean joining)
        Parameters:
        joining - Set to true if the webserver needs to join with the webserver threads (wait/block until finished)
      • getMaxLogLines

        public int getMaxLogLines()
        Returns:
        the maxLogLines
      • setMaxLogLines

        public void setMaxLogLines​(int maxLogLines)
        Parameters:
        maxLogLines - the maxLogLines to set
      • getMaxLogTimeoutMinutes

        public int getMaxLogTimeoutMinutes()
        Returns:
        the maxLogTimeoutMinutes
      • setMaxLogTimeoutMinutes

        public void setMaxLogTimeoutMinutes​(int maxLogTimeoutMinutes)
        Parameters:
        maxLogTimeoutMinutes - the maxLogTimeoutMinutes to set
      • getObjectTimeoutMinutes

        public int getObjectTimeoutMinutes()
        Returns:
        the objectTimeoutMinutes
      • setObjectTimeoutMinutes

        public void setObjectTimeoutMinutes​(int objectTimeoutMinutes)
        Parameters:
        objectTimeoutMinutes - the objectTimeoutMinutes to set
      • getFilename

        public String getFilename()
        Returns:
        the filename
      • setFilename

        public void setFilename​(String filename)
        Parameters:
        filename - the filename to set
      • getPasswordFile

        public String getPasswordFile()
      • setPasswordFile

        public void setPasswordFile​(String passwordFile)
      • getVariables

        public IVariables getVariables()
        Gets variables
        Returns:
        value of variables
      • setVariables

        public void setVariables​(IVariables variables)
        Parameters:
        variables - The variables to set
      • getMetadataFolder

        public String getMetadataFolder()
        Gets metadataFolder
        Returns:
        value of metadataFolder
      • setMetadataFolder

        public void setMetadataFolder​(String metadataFolder)
        Parameters:
        metadataFolder - The metadataFolder to set
      • getMetadataProvider

        public MultiMetadataProvider getMetadataProvider()
        Gets metadataProvider
        Returns:
        value of metadataProvider
      • setMetadataProvider

        public void setMetadataProvider​(MultiMetadataProvider metadataProvider)
        Parameters:
        metadataProvider - The metadataProvider to set