Interface ProcessTask

    • Method Detail

      • getCommandLine

        CommandLine getCommandLine()
        Returns the command line of the process.
        Returns:
        the CommandLine.
      • getProcess

        Process getProcess()
        Returns the process of the executed command.
        Returns:
        the Process.
      • destroy

        void destroy()
        Kills the process.
      • getOut

        String getOut()
        Returns the standard output of the process after the process finished.
        Returns:
        the String standard output.
      • getErr

        String getErr()
        Returns the standard error output of the process after the process finished.
        Returns:
        the String standard error output.
      • getExitValue

        int getExitValue()
        Returns the exit value of the process after the process finished.
        Returns:
        the exit value.
      • addObserver

        void addObserver​(Observer... observer)
        Adds the process task observer(s).
        Parameters:
        observer - the Observer.
      • removeObserver

        void removeObserver​(Observer... observer)
        Removes the process task observer(s).
        Parameters:
        observer - the Observer.