Interface ISystemCommandExecuter

    • Method Detail

      • runSynchronous

        ISynchronousProcess runSynchronous()
        Start a new command synchronous process. You will get back the terminated process.
        Returns:
        the terminated process
      • runSynchronous

        ISynchronousProcess runSynchronous​(int numberOfSecondsToWait)
        Start a new command synchronous process. You will get back the terminated process. In case it could not be finished in the given time it will be destroyed.
        Parameters:
        numberOfSecondsToWait - the number of seconds to wait. If the value less or equal 0, it waits until it is executed
        Returns:
        the process
      • runSynchronous

        ISynchronousProcess runSynchronous​(IProcessInputStream processInputStream,
                                           int numberOfSecondsToWait)
        Start a new command asynchronous process. You will get back the started process.
        Parameters:
        processInputStream - the process input stream
        numberOfSecondsToWait - the number of seconds to wait. If the value less or equal 0, it waits until it is executed
        Returns:
        the asynchronous process which is already started
      • runAsynchronous

        IAsynchronousProcess runAsynchronous()
        Start a new command asynchronous process. You will get back the started process.
        Returns:
        the asynchronous process which is already started
      • runAsynchronous

        IAsynchronousProcess runAsynchronous​(IProcessOutputStream processOutAndErr)
        Start a new command asynchronous process. You will get back the started process.
        Parameters:
        processOutAndErr - the process output and error stream
        Returns:
        the asynchronous process which is already started
      • runAsynchronous

        IAsynchronousProcess runAsynchronous​(IProcessOutputStream processOut,
                                             IProcessOutputStream processErr)
        Start a new command asynchronous process. You will get back the started process.
        Parameters:
        processOut - the process output stream
        processErr - the process error stream
        Returns:
        the asynchronous process which is already started
      • runAsynchronous

        IAsynchronousProcess runAsynchronous​(IProcessInputStream processInputStream,
                                             IProcessOutputStream processOut,
                                             IProcessOutputStream processErr)
        Start a new command asynchronous process. You will get back the started process.
        Parameters:
        processInputStream - the process input stream
        processOut - the process output stream
        processErr - the process error stream
        Returns:
        the asynchronous process which is already started
      • runAsynchronous

        IAsynchronousProcess runAsynchronous​(IProcessInputStream processInputStream,
                                             IProcessOutputStream processOut,
                                             IProcessOutputStream processErr,
                                             long pollTimeout)
        Start a new command asynchronous process. You will get back the started process.
        Parameters:
        processInputStream - the process input stream
        processOut - the process output stream
        processErr - the process error stream
        pollTimeout - the poll timeout to handle the output streams
        Returns:
        the asynchronous process which is already started