|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.karaf.jpm.impl.ProcessBuilderImpl
public class ProcessBuilderImpl
Constructor Summary | |
---|---|
ProcessBuilderImpl()
|
Method Summary | |
---|---|
Process |
attach(int pid)
Attach to an existing process |
ProcessBuilder |
command(java.lang.String command)
Set the command to execute |
ProcessBuilder |
directory(java.io.File dir)
Specified the current directory to run the command from |
Process |
start()
Create and start the process |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProcessBuilderImpl()
Method Detail |
---|
public ProcessBuilder directory(java.io.File dir)
ProcessBuilder
directory
in interface ProcessBuilder
dir
- the directory to run the command from
public ProcessBuilder command(java.lang.String command)
ProcessBuilder
command
in interface ProcessBuilder
command
- the command to execute
public Process start() throws java.io.IOException
ProcessBuilder
start
in interface ProcessBuilder
java.io.IOException
- if the process can not be createdpublic Process attach(int pid) throws java.io.IOException
ProcessBuilder
attach
in interface ProcessBuilder
java.io.IOException
- if the process can not be attached to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |