|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.luniks.process.ProcessHandler
net.luniks.process.WrapperProcessHandler
Class to handle native processes
| Nested Class Summary |
| Nested classes inherited from class net.luniks.process.ProcessHandler |
ProcessHandler.InputStreamReaderThread |
| Field Summary | |
private java.lang.String |
pid
|
static java.lang.String |
WRAPPER
|
| Fields inherited from class net.luniks.process.ProcessHandler |
exitListener, lineListener, name, process, running, stderrReaderThread, stdoutReaderThread, TERM_EXIT_CODE, terminated, threaded |
| Constructor Summary | |
WrapperProcessHandler()
Constructs a ProcessHandler with name "Noname" and no listeners. |
|
WrapperProcessHandler(java.lang.String name,
ExitListener exitListener)
Constructs a ProcessHandler with a name and an exit listener. |
|
WrapperProcessHandler(java.lang.String name,
LineListener lineListener)
Constructs a ProcessHandler with a name and a line listener. |
|
WrapperProcessHandler(java.lang.String name,
LineListener lineListener,
ExitListener exitListener)
Constructs a ProcessHandler with a name, a line listener and an exit listener. |
|
| Method Summary | |
void |
exec(java.lang.String[] cmdarray)
Run the process with its arguments given as argument. |
private java.io.File |
getWrapper()
Returns the location of the wrapper as File |
void |
kill(int signal)
Method to send the signal given as argument to the process using a native kill command. |
| Methods inherited from class net.luniks.process.ProcessHandler |
destroy, getName, hasName, isRunning, setThreaded |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String WRAPPER
private java.lang.String pid
| Constructor Detail |
public WrapperProcessHandler()
public WrapperProcessHandler(java.lang.String name,
LineListener lineListener)
name - the name of the process handlerlineListener - the line listener
public WrapperProcessHandler(java.lang.String name,
ExitListener exitListener)
name - the name of the process handlerexitListener - the exit listener
public WrapperProcessHandler(java.lang.String name,
LineListener lineListener,
ExitListener exitListener)
name - the name of the process handlerlineListener - the line listenerexitListener - the exit listener| Method Detail |
public void exec(java.lang.String[] cmdarray)
exec in class ProcessHandlercmdarray - the process to run and its argumentspublic void kill(int signal)
kill in class ProcessHandlersignal - the signal to send to the processprivate java.io.File getWrapper()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||