Interface IProcess
-
- All Known Subinterfaces:
IAsynchronousProcess,ISynchronousProcess
- All Known Implementing Classes:
AbstractProcess,AsynchronousProcess,SynchronousProcess
public interface IProcessDefines the process
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.IntegergetExitValue()Get the exit value for the process.java.lang.LonggetPid()Get the process idjava.time.InstantgetStartTime()Get the start time of the process.ISystemCommandGroupListgetSystemCommandGroupList()Get the system command group list.java.time.DurationgetTotalCpuDuration()Get the total cpu time accumulated of the process.
-
-
-
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
0indicates normal termination. It return null if it has not exit by now. - Throws:
java.lang.IllegalThreadStateException- if the process has not yet terminated
-
-