public class ProcessesUnix extends Processes
| Constructor and Description |
|---|
ProcessesUnix() |
| Modifier and Type | Method and Description |
|---|---|
net.lecousin.framework.system.unix.software.ProcessesUnix.SeparateProcess |
executeCommand(String[] command,
boolean elevated) |
int |
getCurrentProcessId() |
long |
getProcessCPUTimeNano(int id) |
void |
killProcess(int id) |
List<Integer> |
listProcessesIds() |
getInstance, setInstancepublic int getCurrentProcessId()
getCurrentProcessId in class Processespublic List<Integer> listProcessesIds()
listProcessesIds in class Processespublic void killProcess(int id)
throws Exception
killProcess in class ProcessesExceptionpublic long getProcessCPUTimeNano(int id)
getProcessCPUTimeNano in class Processespublic net.lecousin.framework.system.unix.software.ProcessesUnix.SeparateProcess executeCommand(String[] command, boolean elevated) throws Exception
executeCommand in class ProcessesExceptionCopyright © 2020. All rights reserved.