Class CommandRunner


  • public class CommandRunner
    extends Object
    • Constructor Detail

      • CommandRunner

        public CommandRunner()
    • Method Detail

      • getExitValue

        public int getExitValue()
      • setCommand

        public void setCommand​(String s)
      • getCommand

        public String getCommand()
      • setInputStream

        public void setInputStream​(InputStream is)
      • setStdOutputStream

        public void setStdOutputStream​(OutputStream os)
      • setStdErrorStream

        public void setStdErrorStream​(OutputStream os)
      • exec

        public int exec()
                 throws IOException
        Execute the command
        Returns:
        process exit value (return code) or -1 if timed out.
        Throws:
        IOException - if there is a fatal error interfacing with the environment in which the application is running.
      • getThrownError

        public Throwable getThrownError()
      • getTimeout

        public int getTimeout()
      • setTimeout

        public void setTimeout​(int timeout)
      • getWaitForExit

        public boolean getWaitForExit()
      • setWaitForExit

        public void setWaitForExit​(boolean waitForExit)