Package | Description |
---|---|
org.jlab.coda.cMsg.remoteExec |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<ExecutorInfo> |
Commander.getExecutors()
Get the collection of known Executors.
|
Modifier and Type | Method and Description |
---|---|
void |
Commander.kill(ExecutorInfo exec,
boolean killProcesses)
Kill the specified executor and, optionally, all processes it has started.
|
(package private) CommandReturn |
Commander.startProcess(ExecutorInfo exec,
java.lang.String cmd,
boolean monitor,
boolean wait,
CommandCallback callback,
java.lang.Object userObject,
int timeout)
Start an external process using the specified executor.
|
CommandReturn |
Commander.startProcess(ExecutorInfo exec,
java.lang.String cmd,
boolean monitor,
CommandCallback callback,
java.lang.Object userObject)
This method is an asynchronous means of starting an external process
using the specified executor.
|
CommandReturn |
Commander.startProcess(ExecutorInfo exec,
java.lang.String cmd,
boolean monitor,
int timeout)
This method is a synchronous means of starting an external process
using the specified executor and waiting for it to finish.
|
(package private) CommandReturn |
Commander.startThread(ExecutorInfo exec,
java.lang.String className,
boolean wait,
CommandCallback callback,
java.lang.Object userObject,
int timeout,
ConstructorInfo constructorArgs)
Starts an internal thread in the specified executor and immediately
returns.
|
(package private) CommandReturn |
Commander.startThread(ExecutorInfo exec,
java.lang.String className,
CommandCallback callback,
java.lang.Object userObject,
ConstructorInfo constructorArgs)
This method is an asynchronous means of starting an internal thread
in the specified executor and immediately returns.
|
CommandReturn |
Commander.startThread(ExecutorInfo exec,
java.lang.String className,
int timeout,
ConstructorInfo constructorArgs)
This method is a synchronous means of starting an internal thread
in the specified executor and waiting for it to finish.
|
java.util.List<CommandReturn> |
Commander.startWindows(ExecutorInfo exec,
java.lang.String title,
int count,
int widthChars,
int heightChars)
This method is example of how to make a bunch of identical xterm windows
fill the screen in a conveniently packed manner.
|
CommandReturn |
Commander.startXterm(ExecutorInfo exec,
java.lang.String cmd,
java.lang.String geometry,
java.lang.String title)
Start an xterm and run the specified command in it using the specified executor.
|
void |
Commander.stop(ExecutorInfo exec,
CommandReturn commandReturn)
Stop the given process or thread on the specified executor.
|
void |
Commander.stop(ExecutorInfo exec,
int commandId)
Stop the given process or thread on the specified executor.
|
void |
Commander.stopAll(ExecutorInfo exec)
Stop all processes and threads on the specified executor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<CommandReturn> |
Commander.startCommandInWindows(java.util.List<ExecutorInfo> executors,
java.lang.String command,
int widthChars,
int heightChars)
This method is example of how to make a bunch of identical xterm windows
fill the screen in a conveniently packed manner and run a single given command
in each of the xterms.
|
java.util.List<CommandReturn> |
Commander.startCommandsInWindows(java.util.List<ExecutorInfo> executors,
java.util.List<java.lang.String> commands,
int widthChars,
int heightChars)
This method is example of how to make a bunch of identical xterm windows
fill the screen in a conveniently packed manner and run a single, different
command in each of the xterms.
|
Constructor and Description |
---|
CommandReturn(Commander commander,
ExecutorInfo executor,
CallbackState callbackState)
Constructor.
|
CommandReturn(Commander commander,
ExecutorInfo executor,
int id,
int processId,
boolean error,
boolean terminated,
java.lang.String regularOutput,
java.lang.String errorOutput)
Constructor.
|