| org.cougaar.tools.server.RemoteProcess
All known Subclasses: org.cougaar.tools.server.server.RemoteProcessImpl, org.cougaar.tools.server.rmi.RemoteProcessStub,
RemoteProcess | public interface RemoteProcess (Code) | | Client support for a remote Process running on the server.
|
Method Summary | |
int | destroy() Destroy this process if it isAlive(). | void | dumpThreads() Trigger the process's JVM to produce a Thread-Dump, which is
printed to Standard-Out and will be sent back through the
listener(s). | int | exitValue() | ProcessDescription | getProcessDescription() Get the ProcessDescription. | RemoteListenable | getRemoteListenable() Get the listenable API for this process, which
allows the client to add/remove OutputBundle listeners. | boolean | isAlive() Is the process alive -- note that isRegistered() implies
isAlive(). | ProcessStatus[] | listProcesses(boolean showAll) List all running processes on the host, marking the
process as ProcessStatus.MARK_SELF. | int | waitFor() Wait for the process to exit, then return the exit value. | int | waitFor(long millis) Wait at most millis for the process to exit, then return
the exit value. |
destroy | int destroy() throws Exception(Code) | | Destroy this process if it isAlive().
|
dumpThreads | void dumpThreads() throws Exception(Code) | | Trigger the process's JVM to produce a Thread-Dump, which is
printed to Standard-Out and will be sent back through the
listener(s).
This is Operating System specific and may not be supported
on all hosts.
See the JVM documentation for the "stackTrace" syntax.
|
exitValue | int exitValue() throws Exception(Code) | | the exit value of the dead process, or Integer.MIN_VALUE if "isAlive()" |
getRemoteListenable | RemoteListenable getRemoteListenable() throws Exception(Code) | | Get the listenable API for this process, which
allows the client to add/remove OutputBundle listeners.
|
isAlive | boolean isAlive() throws Exception(Code) | | Is the process alive -- note that isRegistered() implies
isAlive().
true if the process is running |
listProcesses | ProcessStatus[] listProcesses(boolean showAll) throws Exception(Code) | | List all running processes on the host, marking the
process as ProcessStatus.MARK_SELF.
If (showAll == false) then only process information
is only gathered for the process and it's children.
This is Operating System specific and may not be supported
on all hosts.
See Also: ProcessStatus |
waitFor | int waitFor() throws Exception(Code) | | Wait for the process to exit, then return the exit value.
|
waitFor | int waitFor(long millis) throws Exception(Code) | | Wait at most millis for the process to exit, then return
the exit value.
|
|
|