ProcessHandle.Info Interface
The ProcessHandle.Info interface lets you retrieve information about a process, including processes created by the ProcessBuilder.start method and native processes.
See Getting Information About a Process for an example of the ProcessHandle.Info interface. The following table summarizes the methods in this interface:
Table 6-4 ProcessHandle.Info Interface Methods
Method | Description |
---|---|
arguments() | Returns the arguments of the process as a String array. |
command() | Returns the executable path name of the process. |
commandLine() | Returns the command line of the process. |
startInstant() | Returns the start time of the process. |
totalCpuDuration() | Returns the process's total accumulated CPU time. |
user() | Returns the user of the process. |