public class ProcessOps
extends java.lang.Object
Progress Language Statement Java Equivalent --------------------------- --------------------------- BTOSlaunch(String[], boolean, boolean, boolean)DOSlaunch(String[], boolean, boolean, boolean)OS-COMMANDlaunch(String[], boolean, boolean, boolean)OS2launch(String[], boolean, boolean, boolean)UNIXlaunch(String[], boolean, boolean, boolean)INPUT THROUGHlaunch(String[], RemoteStream, RemoteStream)OUTPUT THROUGHlaunch(String[], RemoteStream, RemoteStream)INPUT-OUTPUT THROUGHlaunch(String[], RemoteStream, RemoteStream)
| Modifier and Type | Class and Description |
|---|---|
private static class |
ProcessOps.CommandLineParser
Gets a supported helper application parameter from the given command arguments list.
|
private static class |
ProcessOps.ContextContainer
Simple container that stores and returns a context-local instance of
the global work area.
|
private static class |
ProcessOps.WorkArea
Stores global data relating to the state of the current context.
|
| Modifier and Type | Field and Description |
|---|---|
private static ProcessOps.ContextContainer |
work
Stores context-local state variables.
|
| Constructor and Description |
|---|
ProcessOps() |
| Modifier and Type | Method and Description |
|---|---|
static void |
launch()
Launches the default shell for this system synchronous operation and
displaying a prompt after the child process terminates.
|
static void |
launch(boolean silent,
boolean wait)
Launches the default shell for this system taking into account the
flags which specify synchronous or asynchronous operation and whether
a prompt is provided after the child process terminates.
|
static void |
launch(java.lang.String[] cmdlist,
boolean silent,
boolean wait)
Launches the external executible specified by the
cmdlist
taking into account the flags which specify synchronous or asynchronous
operation and whether a prompt is provided after the child process
terminates. |
static void |
launch(java.lang.String[] cmdlist,
boolean silent,
boolean wait,
boolean console)
Launches the external executible specified by the
cmdlist
taking into account the flags which specify synchronous or asynchronous
operation and whether a prompt is provided after the child process
terminates. |
static void |
launch(java.lang.String[] cmdlist,
RemoteStream sout,
RemoteStream sin)
Launches the external executible specified by the
cmdlist
on an asynchronous basis. |
static void |
launch(java.lang.String[] cmdlist,
StreamWrapper sout,
StreamWrapper sin)
Launches the external executible specified by the
cmdlist
on an asynchronous basis. |
private static ProcessOps.ContextContainer work
public static void launch()
STDIN, STDOUT and STDERR are
all linked from the child process to the current JVM process using
a StreamConnector for each pipe.
public static void launch(boolean silent,
boolean wait)
STDIN, STDOUT and STDERR are
all linked from the child process to the current JVM process using
a StreamConnector for each pipe.
silent - If true the default prompt is suppressed.
Otherwise, ThinClient.pause is called when the
child process exits.wait - If true, synchronous operation is requested
which waits for the termination of the child process on the
current thread. If false, a thread will be
started to wait for the child process termination and to
subsequently handle cleanup (asynchronous mode).public static void launch(java.lang.String[] cmdlist,
boolean silent,
boolean wait)
cmdlist
taking into account the flags which specify synchronous or asynchronous
operation and whether a prompt is provided after the child process
terminates. The command is always executed as a child process of the
shell which is a child process of the current JVM process.
STDIN, STDOUT and STDERR are
all linked from the child process to the current JVM process using
a StreamConnector for each pipe.
cmdlist - The command line to be executed, with the first element
used as the program to run and all other array elements as
the arguments.silent - If true the default prompt is suppressed.
Otherwise, ThinClient.pause is called when the
child process exits.wait - If true, synchronous operation is requested
which waits for the termination of the child process on the
current thread. If false, a thread will be
started to wait for the child process termination and to
subsequently handle cleanup (asynchronous mode).public static void launch(java.lang.String[] cmdlist,
boolean silent,
boolean wait,
boolean console)
cmdlist
taking into account the flags which specify synchronous or asynchronous
operation and whether a prompt is provided after the child process
terminates. The command is always executed as a child process of the
shell which is a child process of the current JVM process.
STDIN, STDOUT and STDERR are
all linked from the child process to the current JVM process using
a StreamConnector for each pipe.
cmdlist - The command line to be executed, with the first element
used as the program to run and all other array elements as
the arguments.silent - If true the default prompt is suppressed.
Otherwise, ThinClient.pause is called when the
child process exits.wait - If true, synchronous operation is requested
which waits for the termination of the child process on the
current thread. If false, a thread will be
started to wait for the child process termination and to
subsequently handle cleanup (asynchronous mode).console - If true, the process is starting in a separate new console,
false means using 4GL no-console option.public static void launch(java.lang.String[] cmdlist,
StreamWrapper sout,
StreamWrapper sin)
cmdlist
on an asynchronous basis. The command is always executed as a child
process of the shell which is a child process of the current JVM
process.
STDIN, STDOUT and STDERR are
all linked from the child process to the passed parameters if
those parameters are not null. Any null
pipes are closed immediately and those pipes connected with the
passed parameters must be closed by the caller. Please see the
ProcessStream for more details.
cmdlist - The command line to be executed, with the first element
used as the program to run and all other array elements as
the arguments.sout - A StreamWrapper instance which contains the
ProcessStream to be connected to the child
process' STDOUT and STDERR or null
for no connection. Used for reading.sin - A StreamWrapper instance which contains the
ProcessStream to be connected to the child
process' STDIN or null for no
connection. Used for writing.public static void launch(java.lang.String[] cmdlist,
RemoteStream sout,
RemoteStream sin)
cmdlist
on an asynchronous basis. The command is always executed as a child
process of the shell which is a child process of the current JVM
process.
STDIN, STDOUT and STDERR are
all linked from the child process to the passed parameters if
those parameters are not null. Any null
pipes are closed immediately and those pipes connected with the
passed parameters must be closed by the caller. Please see the
ProcessStream for more details.
cmdlist - The command line to be executed, with the first element
used as the program to run and all other array elements as
the arguments.sout - The RemoteStream to be connected to the child
process' STDOUT and STDERR or null
for no connection. Used for reading.sin - The RemoteStream to be connected to the child
process' STDIN or null for no
connection. Used for writing.