public class UnixProcessUtilities extends Object implements UNIXProcessHandler
ID
Modifier and Type | Method and Description |
---|---|
Process |
createAndRunProcess(List<String> args) |
static UNIXProcessHandler |
getInstance() |
String |
getProcessName(Integer pid)
Gets the process name given its
pid . |
BufferedReader |
getProcessOutput(Process process) |
void |
sendSignal(Integer pid,
UNIXSignal signal)
Sends the given
UNIXSignal to the process indicated by
pid . |
public static UNIXProcessHandler getInstance()
public void sendSignal(Integer pid, UNIXSignal signal)
UNIXProcessHandler
UNIXSignal
to the process indicated by
pid
.sendSignal
in interface UNIXProcessHandler
public String getProcessName(Integer pid)
UNIXProcessHandler
pid
.getProcessName
in interface UNIXProcessHandler
public BufferedReader getProcessOutput(Process process)
public Process createAndRunProcess(List<String> args) throws IOException, ApplicationException
IOException
ApplicationException
Copyright © 2017. All Rights Reserved.