OsVastSubprocess
Description
Instances of <OsVastSubprocess> are cross-platform handles representing operating system processes that have been spawned by VAST
Stdio Streams
Instances of this class add the concepts of stdio streams to a native process.
• #inputStream - A write stream connecting to the stdin on the subprocess
• #outputStream - A read stream connecting to the stdout of the subprocess
• #errorStream - A read stream connecting to the stderr of the subprocess
Tracing
Instances of this class also add the concept of tracing. This trace information provides detailed info about the spawning of the subprocess.
• #traceStream - A read stream on the optional trace information for the process.
Class Methods
all
Private: Use OsProcesses>>spawned
Answer an array of pid sorted subprocesses of VAST
that were active at the time this call was made
Answers:
<Array>
deadlockAvoidanceMs
Answer the wait (in milliseconds) that occurs in the
DeadlockAvoidance process loop
Answers:
<Integer>
deadlockAvoidanceMs:
Set the wait (in milliseconds) that occurs in the
DeadlockAvoidance process loop
A lower number means less time for the os pipe buffer to fill up
Instance Methods
closeStreams
Close all stdio streams.
Ignore any exceptions
errorStream
Answer the stderr stream of the process.
@see OsNativeProcess>>stderrStream comments for more details.
Answers:
<OsProcessStream>
inputStream
Answer the stdin stream of the process.
@see OsNativeProcess>>stdinStream comments for more details.
Answers:
<OsProcessStream>
isDetached
Answer true if this subprocess is running in detached mode, false otherwise.
@see OsProcessStarter>>detached for a detailed description
Answers:
<Boolean>
isVastSubprocess
Object check
Answers:
<Boolean> true
outputStream
Answer the stdout stream of the process.
@see OsNativeProcess>>stdoutStream comments for more details.
Answers:
<OsProcessStream>
traceStream
Answer the newline separated tracing read stream.
If tracing was not enabled, then this stream will
be positioned at the end.
A 'trace' will capture information regarding the details
of how the subprocess was spawned, along with any
errors that may have occurred.
Answers:
<ReadStream>
Last modified date: 07/07/2022