Interface IProcess

    • Method Detail

      • getProcessEnvironment

        IProcessEnvironment getProcessEnvironment()
        Get the process environment
        Returns:
        the process environment
      • getSystemCommand

        ISystemCommand getSystemCommand()
        Get the system command of the process.
        Returns:
        the system command of this process
      • getPid

        java.lang.Long getPid()
        Get the process id.
        Returns:
        the native process id of the process or null if unknown
      • getInputStream

        java.io.OutputStream getInputStream()
        Get the standard input stream connected the process.
        Returns:
        the standard input stream connected to the process
      • getOutputStream

        java.io.InputStream getOutputStream()
        Get the standard output stream connected the process.
        Returns:
        the standard output stream connected to the process
      • getErrorStream

        java.io.InputStream getErrorStream()
        Get the standard error stream connected the process.
        Returns:
        the error stream connected to the process
      • getStartTime

        java.time.Instant getStartTime()
        Get the start time of the process.
        Returns:
        the start time of the process
      • getTotalCpuDuration

        java.time.Duration getTotalCpuDuration()
        Get the total cpu time accumulated of the process.
        Returns:
        the accumulated total cpu time
      • getExitValue

        java.lang.Integer getExitValue()
        Get the exit value for the process.
        Returns:
        the exit value of the process, by convention, the value 0 indicates normal termination. It return null if it has not exit by now.
        Throws:
        java.lang.IllegalThreadStateException - if the process has not yet terminated