public class UnixProcessUtilities extends Object
Modifier and Type | Method and Description |
---|---|
Process |
createAndRunProcess(List<String> args) |
static UnixProcessUtilities |
getInstance() |
String |
getProcessName(String pid)
Returns the process name of the process with the given pid, or null
if no process is running with the given pid.
|
BufferedReader |
getProcessOutput(Process process) |
public static UnixProcessUtilities getInstance()
public String getProcessName(String pid)
public BufferedReader getProcessOutput(Process process)
public Process createAndRunProcess(List<String> args) throws IOException, ApplicationException
IOException
ApplicationException
Copyright © 2012. All Rights Reserved.