Class AbstractToolClient

    • Constructor Detail

      • AbstractToolClient

        public AbstractToolClient​(String toolName,
                                  String installPath,
                                  int timeout)
        Instantiates a new AbstractToolClient.
        Parameters:
        toolName - the tool name identifying the chosen ETInstallation.
        installPath - the install path
        timeout - the timeout
      • AbstractToolClient

        public AbstractToolClient​(String toolName,
                                  int timeout)
        Instantiates a new AbstractToolClient.
        Parameters:
        toolName - the tool name identifying the chosen ETInstallation.
        timeout - the timeout
    • Method Detail

      • getToolName

        public String getToolName()
      • getInstallPath

        public String getInstallPath()
      • getTimeout

        public int getTimeout()
      • launchProcess

        protected boolean launchProcess​(Launcher launcher,
                                        TaskListener listener)
                                 throws InterruptedException
        Launches a process by using ArgumentListBuilder and waits for start up within a given timeout.
        Parameters:
        launcher - the launcher
        listener - the listener
        Returns:
        true if process invocation succeeded, false if launching process failed or timeout exceeded
        Throws:
        InterruptedException - if the build gets interrupted