|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addProcessEventListener(ProcessEventListener listener)
|
JProcess |
createProcess(java.lang.String className)
Create a process with given args, and additional classpath(s). |
JProcess |
createProcess(java.lang.String className,
java.lang.String[] args)
Create a process with given args, and additional classpath(s). |
JProcess |
createProcess(java.lang.String className,
java.lang.String[] args,
java.net.URL[] classPath)
Create a process with given args, and additional classpath(s). |
JProcess |
createProcessFromString(java.lang.String line)
Creates a process from the information in a given String of the format: " |
JProcess |
createProcessFromString(java.lang.String line,
java.net.URL[] classPath)
Creates a process from the information in a given String of the format: " |
void |
doGarbageCollect()
Perform garbage collection. |
JProcess |
getCurrentProcess()
Return the current process. |
JProcess |
getProcess(long pid)
Get a process by process-id. |
java.util.Enumeration |
getProcesses()
Get an enumeration of all processes. |
JProcess |
getProcessFor(java.lang.ClassLoader loader)
Get the process that a classloader belongs to. |
JProcess |
getProcessFor(java.lang.ThreadGroup group)
Get the process that a threadgroup belongs to. |
StandardIO |
getStandardIOForProcess(JProcess process)
Set the streams to be used when the Process asks for standard io. |
void |
kill(long pid)
Kill a process by pid. |
void |
removeProcessEventListener(ProcessEventListener listener)
|
void |
setStandardIOForProcess(JProcess process,
StandardIO stdio)
Get the streams a process uses for standard io |
Method Detail |
public JProcess createProcess(java.lang.String className) throws ProcessCreationException
className
- The name of the target class.public JProcess createProcess(java.lang.String className, java.lang.String[] args) throws ProcessCreationException
className
- The name of the target class.args
- The arguments to pass to the main(String[]) method.public JProcess createProcess(java.lang.String className, java.lang.String[] args, java.net.URL[] classPath) throws ProcessCreationException
className
- The name of the target class.args
- The arguments to pass to the main(String[]) method.classpath
- An array of URLs to search for classes in.public JProcess createProcessFromString(java.lang.String line) throws ProcessCreationException
string
- The string to decode process info from.public JProcess createProcessFromString(java.lang.String line, java.net.URL[] classPath) throws ProcessCreationException
string
- The string to decode process info from.classpath
- Classpaths to search in addition to defaults.public JProcess getProcessFor(java.lang.ThreadGroup group)
group
- The ThreadGroup to attribute a process to.public JProcess getProcessFor(java.lang.ClassLoader loader)
group
- The ThreadGroup to attribute a process to.public JProcess getCurrentProcess()
public JProcess getProcess(long pid)
pid
- The id-number of the process.public java.util.Enumeration getProcesses()
public void kill(long pid)
pid
- The process-id to kill.public void addProcessEventListener(ProcessEventListener listener)
public void removeProcessEventListener(ProcessEventListener listener)
public void doGarbageCollect()
public StandardIO getStandardIOForProcess(JProcess process)
process
- The process to set for.stdio
- The set of IO streams to use as standard io.public void setStandardIOForProcess(JProcess process, StandardIO stdio)
process
- The process to get streams for.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |