Class HopServer

    • Method Detail

      • getBackoffIncrements

        public static int getBackoffIncrements()
      • replaceMeta

        public void replaceMeta​(HopServer hopServer)
      • getHostname

        public String getHostname()
      • setHostname

        public void setHostname​(String urlString)
      • getPassword

        public String getPassword()
        Returns:
        the password
      • setPassword

        public void setPassword​(String password)
        Parameters:
        password - the password to set
      • getUsername

        public String getUsername()
        Returns:
        the username
      • setUsername

        public void setUsername​(String username)
        Parameters:
        username - the username to set
      • getWebAppName

        public String getWebAppName()
        Returns:
        the username
      • setWebAppName

        public void setWebAppName​(String webAppName)
        Parameters:
        webAppName - the web application name to set
      • getNonProxyHosts

        public String getNonProxyHosts()
        Returns:
        the nonProxyHosts
      • setNonProxyHosts

        public void setNonProxyHosts​(String nonProxyHosts)
        Parameters:
        nonProxyHosts - the nonProxyHosts to set
      • getProxyHostname

        public String getProxyHostname()
        Returns:
        the proxyHostname
      • setProxyHostname

        public void setProxyHostname​(String proxyHostname)
        Parameters:
        proxyHostname - the proxyHostname to set
      • getProxyPort

        public String getProxyPort()
        Returns:
        the proxyPort
      • setProxyPort

        public void setProxyPort​(String proxyPort)
        Parameters:
        proxyPort - the proxyPort to set
      • getPropertiesMasterName

        public String getPropertiesMasterName()
        Returns:
        the Master name for read properties
      • isOverrideExistingProperties

        public boolean isOverrideExistingProperties()
        Returns:
        flag for read properties from Master
      • getPort

        public String getPort()
        Returns:
        the port
      • setShutdownPort

        public void setShutdownPort​(String port)
        Parameters:
        port - the port to set
      • getShutdownPort

        public String getShutdownPort()
        Returns:
        the shutdown port
      • setPort

        public void setPort​(String port)
        Parameters:
        port - the shutdown port to set
      • getPortSpecification

        public String getPortSpecification​(IVariables variables)
      • sendExport

        public String sendExport​(IVariables variables,
                                 String filename,
                                 String type,
                                 String load)
                          throws Exception
        Send an exported archive over to this hop server
        Parameters:
        filename - The archive to send
        type - The type of file to add to the hop server (AddExportServlet.TYPE_*)
        load - The filename to load in the archive (the .hwf or .hpl)
        Returns:
        the XML of the web result
        Throws:
        Exception - in case something goes awry
      • getAuthContext

        protected org.apache.http.client.protocol.HttpClientContext getAuthContext​(IVariables variables)
        Returns:
        HttpClientContext with authorization credentials
      • getDelay

        public static long getDelay​(int trial)
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)
      • verifyAndModifyHopServerName

        public String verifyAndModifyHopServerName​(List<HopServer> hopServers,
                                                   String oldname)
        Verify the name of the hop server and if required, change it if it already exists in the list of hop servers.
        Parameters:
        hopServers - the hop servers to check against.
        oldname - the old name of the hop server
        Returns:
        the new hop server name
      • sniffTransform

        public String sniffTransform​(IVariables variables,
                                     String pipelineName,
                                     String transformName,
                                     String id,
                                     String copyNr,
                                     int lines,
                                     String type)
                              throws Exception
        Sniff rows on a the hop server, return xml containing the row metadata and data.
        Parameters:
        pipelineName - pipeline name
        id - the id on the server
        transformName - transform name
        copyNr - transform copy number
        lines - lines number
        type - transform type
        Returns:
        xml with row metadata and data
        Throws:
        Exception
      • monitorRemotePipeline

        public void monitorRemotePipeline​(IVariables variables,
                                          ILogChannel log,
                                          String serverObjectId,
                                          String pipelineName)
        Monitors a remote pipeline every 5 seconds.
        Parameters:
        log - the log channel interface
        serverObjectId - the HopServer object ID
        pipelineName - the pipeline name
      • monitorRemotePipeline

        public void monitorRemotePipeline​(IVariables variables,
                                          ILogChannel log,
                                          String serverObjectId,
                                          String pipelineName,
                                          int sleepTimeSeconds)
        Monitors a remote pipeline at the specified interval.
        Parameters:
        log - the log channel interface
        serverObjectId - the HopServer object ID
        pipelineName - the pipeline name
        sleepTimeSeconds - the sleep time (in seconds)
      • monitorRemoteWorkflow

        public void monitorRemoteWorkflow​(IVariables variables,
                                          ILogChannel log,
                                          String serverObjectId,
                                          String workflowName)
        Monitors a remote workflow every 5 seconds.
        Parameters:
        log - the log channel interface
        serverObjectId - the HopServer object ID
        workflowName - the workflow name
      • monitorRemoteWorkflow

        public void monitorRemoteWorkflow​(IVariables variables,
                                          ILogChannel log,
                                          String serverObjectId,
                                          String workflowName,
                                          int sleepTimeSeconds)
        Monitors a remote workflow at the specified interval.
        Parameters:
        log - the log channel interface
        serverObjectId - the HopServer object ID
        workflowName - the workflow name
        sleepTimeSeconds - the sleep time (in seconds)
      • getChangedDate

        public Date getChangedDate()
        Returns:
        the changedDate
      • setSslMode

        public void setSslMode​(boolean sslMode)
        Parameters:
        sslMode -
      • isSslMode

        public boolean isSslMode()
        Returns:
        the sslMode
      • setSslConfig

        public void setSslConfig​(SslConfiguration sslConfig)
        Parameters:
        sslConfig - The sslConfig to set
      • setOverrideExistingProperties

        public void setOverrideExistingProperties​(boolean overrideExistingProperties)
        Parameters:
        overrideExistingProperties - The overrideExistingProperties to set
      • setPropertiesMasterName

        public void setPropertiesMasterName​(String propertiesMasterName)
        Parameters:
        propertiesMasterName - The propertiesMasterName to set