Interface IProcess

    • Method Detail

      • getSystemCommandGroupList

        ISystemCommandGroupList getSystemCommandGroupList()
        Get the system command group list.
        Returns:
        the system command group list of this process
      • getPid

        java.lang.Long getPid()
        Get the process id
        Returns:
        the native process id of the process or null if unknown
      • 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