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