Skip to main content

ProcessLauncher

Managing process execution allows you to run external programs and terminal commands.


autoCloseOutputStreams​


autoCloseOutputStreams() : boolean​

Return​

( boolean )


autoCloseOutputStreams(autoCloseOutputStreams: boolean) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
autoCloseOutputStreamsboolean
Return​

( ProcessLauncher )


await​


await() : boolean​

Return​

( boolean )


await(wait: boolean) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
waitboolean
Return​

( ProcessLauncher )


directory​


directory() : string​

Description​

Gets the path where the commands will be executed.

Return​

( string )

The location where the command will be executed.


directory(file: java.io.File) : org.netuno.psamata.os.ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
filejava.io.File
Return​

( org.netuno.psamata.os.ProcessLauncher )


directory(directory: string) : ProcessLauncher​

Description​

Defines the path where the commands will be executed.

Attributes​
NAMETYPEDESCRIPTION
directorystringThe location where the command will be executed.
Return​

( ProcessLauncher )

Instance of the operating system resource.


directory(directory: File) : ProcessLauncher​

Description​

Defines the path where the commands will be executed.

Attributes​
NAMETYPEDESCRIPTION
directoryFileThe location where the command will be executed.
Return​

( ProcessLauncher )

Instance of the operating system resource.


directory(directory: Storage) : ProcessLauncher​

Description​

Defines the path where the commands will be executed.

Attributes​
NAMETYPEDESCRIPTION
directoryStorageThe location where the command will be executed.
Return​

( ProcessLauncher )

Instance of the operating system resource.


env​


env() : Values​

Return​

( Values )


env(env: Values) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
envValues
Return​

( ProcessLauncher )


errorOutput​


errorOutput(err: OutputStream) : org.netuno.psamata.os.ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
errOutputStream
Return​

( org.netuno.psamata.os.ProcessLauncher )


errorOutputLineConsumer​


errorOutputLineConsumer() : java.util.function.Consumer<string>​

Return​

( java.util.function.Consumer )


errorOutputLineConsumer(consumer: java.util.function.Consumer<string>) : org.netuno.psamata.os.ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
consumerjava.util.function.Consumer
Return​

( org.netuno.psamata.os.ProcessLauncher )


errorOutputStream​


errorOutputStream() : OutputStream​

Return​

( OutputStream )


errorOutputStream(err: OutputStream) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
errOutputStream
Return​

( ProcessLauncher )


errorOutputStream(err: OutputStream) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
errOutputStream
Return​

( ProcessLauncher )


execute​


execute(command: string[]) : ProcessResult​

Description​

Executes a command in the operating system and obtains the result of the execution, the first item is the command and the following are parameters.

Attributes​
NAMETYPEDESCRIPTION
commandstring[]The command and optional parameters that will be executed.
Return​

( ProcessResult )

Result of executing the command in the operating system, including the output.


execute(command: java.util.List<string>) : ProcessResult​

Description​

Executes a command in the operating system and obtains the result of the execution, the first item is the command and the following are parameters.

Attributes​
NAMETYPEDESCRIPTION
commandjava.util.ListThe command and optional parameters that will be executed.
Return​

( ProcessResult )

Result of executing the command in the operating system, including the output.


execute(command: Values) : ProcessResult​

Description​

Executes a command in the operating system and obtains the result of the execution, the first item is the command and the following are parameters.

Attributes​
NAMETYPEDESCRIPTION
commandValuesThe command and optional parameters that will be executed.
Return​

( ProcessResult )

Result of executing the command in the operating system, including the output.


executeAsync​


executeAsync(command: string[]) : ProcessResult​

Attributes​
NAMETYPEDESCRIPTION
commandstring[]
Return​

( ProcessResult )


executeAsync(command: java.util.List<string>) : ProcessResult​

Attributes​
NAMETYPEDESCRIPTION
commandjava.util.List
Return​

( ProcessResult )


executeAsync(command: Values) : ProcessResult​

Attributes​
NAMETYPEDESCRIPTION
commandValues
Return​

( ProcessResult )


getAwait​


getAwait() : boolean​

Return​

( boolean )


getDirectory​


getDirectory() : string​

Description​

Gets the path where the commands will be executed.

Return​

( string )

The location where the command will be executed.


getEnv​


getEnv() : Values​

Return​

( Values )


getErrorOutputLineConsumer​


getErrorOutputLineConsumer() : java.util.function.Consumer<string>​

Return​

( java.util.function.Consumer )


getErrorOutputStream​


getErrorOutputStream() : OutputStream​

Return​

( OutputStream )


getOnFinish​


getOnFinish() : java.util.function.Consumer<org.netuno.psamata.os.ProcessLauncher$Result>​

Return​

( java.util.function.Consumer )


getOnParallel​


getOnParallel() : java.util.function.Consumer<org.netuno.psamata.os.ProcessLauncher$ParallelThread>​

Return​

( java.util.function.Consumer )


getOutputLineConsumer​


getOutputLineConsumer() : java.util.function.Consumer<string>​

Return​

( java.util.function.Consumer )


getOutputStream​


getOutputStream() : OutputStream​

Return​

( OutputStream )


getShell​


getShell() : boolean​

Return​

( boolean )


getShellCommand​


getShellCommand() : string​

Return​

( string )


getShellParameter​


getShellParameter() : string​

Return​

( string )


getTimeLimit​


getTimeLimit() : long​

Return​

( long )


getWaitFor​


getWaitFor() : long​

Return​

( long )


inheritErrorOutput​


inheritErrorOutput() : boolean​

Return​

( boolean )


inheritErrorOutput(inheritErrorOutput: boolean) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
inheritErrorOutputboolean
Return​

( ProcessLauncher )


inheritOutput​


inheritOutput() : boolean​

Return​

( boolean )


inheritOutput(inheritOutput: boolean) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
inheritOutputboolean
Return​

( ProcessLauncher )


isAutoCloseOutputStreams​


isAutoCloseOutputStreams() : boolean​

Return​

( boolean )


isInheritErrorOutput​


isInheritErrorOutput() : boolean​

Return​

( boolean )


isInheritOutput​


isInheritOutput() : boolean​

Return​

( boolean )


isReadErrorOutput​


isReadErrorOutput() : boolean​

Return​

( boolean )


isReadOutput​


isReadOutput() : boolean​

Return​

( boolean )


isRedirectErrorStream​


isRedirectErrorStream() : boolean​

Return​

( boolean )


onFinish​


onFinish() : java.util.function.Consumer<org.netuno.psamata.os.ProcessLauncher$Result>​

Return​

( java.util.function.Consumer )


onFinish(onFinish: java.util.function.Consumer<org.netuno.psamata.os.ProcessLauncher$Result>) : org.netuno.psamata.os.ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
onFinishjava.util.function.Consumer
Return​

( org.netuno.psamata.os.ProcessLauncher )


onParallel​


onParallel() : java.util.function.Consumer<org.netuno.psamata.os.ProcessLauncher$ParallelThread>​

Return​

( java.util.function.Consumer )


onParallel(onParallel: java.util.function.Consumer<org.netuno.psamata.os.ProcessLauncher$ParallelThread>) : org.netuno.psamata.os.ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
onParalleljava.util.function.Consumer
Return​

( org.netuno.psamata.os.ProcessLauncher )


output​


output(out: OutputStream) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
outOutputStream
Return​

( ProcessLauncher )


outputLineConsumer​


outputLineConsumer() : java.util.function.Consumer<string>​

Return​

( java.util.function.Consumer )


outputLineConsumer(consumer: java.util.function.Consumer<string>) : org.netuno.psamata.os.ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
consumerjava.util.function.Consumer
Return​

( org.netuno.psamata.os.ProcessLauncher )


outputStream​


outputStream() : OutputStream​

Return​

( OutputStream )


outputStream(out: OutputStream) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
outOutputStream
Return​

( ProcessLauncher )


readErrorOutput​


readErrorOutput() : boolean​

Return​

( boolean )


readErrorOutput(readErrorOutput: boolean) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
readErrorOutputboolean
Return​

( ProcessLauncher )


readOutput​


readOutput() : boolean​

Return​

( boolean )


readOutput(readOutput: boolean) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
readOutputboolean
Return​

( ProcessLauncher )


redirectErrorStream​


redirectErrorStream() : boolean​

Return​

( boolean )


redirectErrorStream(redirectErrorStream: boolean) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
redirectErrorStreamboolean
Return​

( ProcessLauncher )


setAutoCloseOutputStreams​


setAutoCloseOutputStreams(autoCloseOutputStreams: boolean) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
autoCloseOutputStreamsboolean
Return​

( ProcessLauncher )


setAwait​


setAwait(wait: boolean) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
waitboolean
Return​

( ProcessLauncher )


setDirectory​


setDirectory(file: java.io.File) : org.netuno.psamata.os.ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
filejava.io.File
Return​

( org.netuno.psamata.os.ProcessLauncher )


setDirectory(directory: string) : ProcessLauncher​

Description​

Defines the path where the commands will be executed.

Attributes​
NAMETYPEDESCRIPTION
directorystringThe location where the command will be executed.
Return​

( ProcessLauncher )

Instance of the operating system resource.


setDirectory(directory: File) : ProcessLauncher​

Description​

Defines the path where the commands will be executed.

Attributes​
NAMETYPEDESCRIPTION
directoryFileThe location where the command will be executed.
Return​

( ProcessLauncher )

Instance of the operating system resource.


setDirectory(directory: Storage) : ProcessLauncher​

Description​

Defines the path where the commands will be executed.

Attributes​
NAMETYPEDESCRIPTION
directoryStorageThe location where the command will be executed.
Return​

( ProcessLauncher )

Instance of the operating system resource.


setEnv​


setEnv(env: Values) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
envValues
Return​

( ProcessLauncher )


setErrorOutput​


setErrorOutput(err: OutputStream) : org.netuno.psamata.os.ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
errOutputStream
Return​

( org.netuno.psamata.os.ProcessLauncher )


setErrorOutputLineConsumer​


setErrorOutputLineConsumer(consumer: java.util.function.Consumer<string>) : org.netuno.psamata.os.ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
consumerjava.util.function.Consumer
Return​

( org.netuno.psamata.os.ProcessLauncher )


setErrorOutputStream​


setErrorOutputStream(err: OutputStream) : org.netuno.psamata.os.ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
errOutputStream
Return​

( org.netuno.psamata.os.ProcessLauncher )


setErrorOutputStream(err: OutputStream) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
errOutputStream
Return​

( ProcessLauncher )


setErrorStream​


setErrorStream(err: OutputStream) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
errOutputStream
Return​

( ProcessLauncher )


setExitDelay​


setExitDelay(timeLimit: long) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
timeLimitlong
Return​

( ProcessLauncher )


setInheritErrorOutput​


setInheritErrorOutput(inheritErrorOutput: boolean) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
inheritErrorOutputboolean
Return​

( ProcessLauncher )


setInheritOutput​


setInheritOutput(inheritOutput: boolean) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
inheritOutputboolean
Return​

( ProcessLauncher )


setOnFinish​


setOnFinish(onFinish: java.util.function.Consumer<org.netuno.psamata.os.ProcessLauncher$Result>) : org.netuno.psamata.os.ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
onFinishjava.util.function.Consumer
Return​

( org.netuno.psamata.os.ProcessLauncher )


setOnParallel​


setOnParallel(onParallel: java.util.function.Consumer<org.netuno.psamata.os.ProcessLauncher$ParallelThread>) : org.netuno.psamata.os.ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
onParalleljava.util.function.Consumer
Return​

( org.netuno.psamata.os.ProcessLauncher )


setOutput​


setOutput(out: OutputStream) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
outOutputStream
Return​

( ProcessLauncher )


setOutputLineConsumer​


setOutputLineConsumer(consumer: java.util.function.Consumer<string>) : org.netuno.psamata.os.ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
consumerjava.util.function.Consumer
Return​

( org.netuno.psamata.os.ProcessLauncher )


setOutputStream​


setOutputStream(out: OutputStream) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
outOutputStream
Return​

( ProcessLauncher )


setReadErrorOutput​


setReadErrorOutput(readErrorOutput: boolean) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
readErrorOutputboolean
Return​

( ProcessLauncher )


setReadOutput​


setReadOutput(readOutput: boolean) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
readOutputboolean
Return​

( ProcessLauncher )


setRedirectErrorStream​


setRedirectErrorStream(redirectErrorStream: boolean) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
redirectErrorStreamboolean
Return​

( ProcessLauncher )


setShell​


setShell(shell: boolean) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
shellboolean
Return​

( ProcessLauncher )


setShellCommand​


setShellCommand(shellCommand: string) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
shellCommandstring
Return​

( ProcessLauncher )


setShellParameter​


setShellParameter(shellParameter: string) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
shellParameterstring
Return​

( ProcessLauncher )


setTimeLimit​


setTimeLimit(timeLimit: long) : org.netuno.psamata.os.ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
timeLimitlong
Return​

( org.netuno.psamata.os.ProcessLauncher )


setWaitFor​


setWaitFor(waitFor: long) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
waitForlong
Return​

( ProcessLauncher )


shell​


shell() : boolean​

Return​

( boolean )


shell(shell: boolean) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
shellboolean
Return​

( ProcessLauncher )


shellCommand​


shellCommand() : string​

Return​

( string )


shellCommand(shellCommand: string) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
shellCommandstring
Return​

( ProcessLauncher )


shellParameter​


shellParameter() : string​

Return​

( string )


shellParameter(shellParameter: string) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
shellParameterstring
Return​

( ProcessLauncher )


timeLimit​


timeLimit() : long​

Return​

( long )


timeLimit(timeLimit: long) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
timeLimitlong
Return​

( ProcessLauncher )


waitFor​


waitFor() : long​

Return​

( long )


waitFor(waitFor: long) : ProcessLauncher​

Attributes​
NAMETYPEDESCRIPTION
waitForlong
Return​

( ProcessLauncher )