|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.SystemProcess
public class SystemProcess
Class that helps executing a system processes. Adds a timeout, if requested.
| Nested Class Summary | |
|---|---|
private static class |
SystemProcess.Watcher
A timer task that interrups a particular thread in its run method. |
| Constructor Summary | |
|---|---|
SystemProcess()
|
|
| Method Summary | |
|---|---|
static int |
execute(String[] cmd,
long timeout)
Does a timed execution of a process. |
static int |
execute(String[] cmd,
String[] env,
File dir,
long timeout)
Does a timed execution of a process. |
static int |
execute(String[] cmd,
String[] env,
long timeout)
Does a timed execution of a process. |
static int |
execute(String cmd,
long timeout)
Does a timed execution of a process. |
static int |
execute(String cmd,
String[] env,
File dir,
long timeout)
Does a timed execution of a process. |
static int |
execute(String cmd,
String[] env,
long timeout)
Does a timed execution of a process. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemProcess()
| Method Detail |
|---|
public static final int execute(String cmd,
long timeout)
throws IOException,
TimeoutException
IOException
TimeoutException
public static final int execute(String[] cmd,
long timeout)
throws IOException,
TimeoutException
IOException
TimeoutException
public static final int execute(String cmd,
String[] env,
long timeout)
throws IOException,
TimeoutException
IOException
TimeoutException
public static final int execute(String[] cmd,
String[] env,
long timeout)
throws IOException,
TimeoutException
IOException
TimeoutException
public static final int execute(String cmd,
String[] env,
File dir,
long timeout)
throws IOException,
TimeoutException
IOException
TimeoutException
public static final int execute(String[] cmd,
String[] env,
File dir,
long timeout)
throws IOException,
TimeoutException
IOException
TimeoutException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||