Process
Gerenciar a execução de processos permite executar programas externos e comandos de terminal.
autoCloseOutputStreams
autoCloseOutputStreams() : boolean
Return
( boolean )
autoCloseOutputStreams(autoCloseOutputStreams: boolean) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
autoCloseOutputStreams | boolean |
Return
( ProcessLauncher )
await
await() : boolean
Return
( boolean )
await(wait: boolean) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
wait | boolean |
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
NAME | TYPE | DESCRIPTION |
---|---|---|
file | java.io.File |
Return
( org.netuno.psamata.os.ProcessLauncher )
directory(directory: string) : ProcessLauncher
Description
Defines the path where the commands will be executed.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
directory | string | The 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
NAME | TYPE | DESCRIPTION |
---|---|---|
directory | File | The 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
NAME | TYPE | DESCRIPTION |
---|---|---|
directory | Storage | The 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
NAME | TYPE | DESCRIPTION |
---|---|---|
env | Values |
Return
( ProcessLauncher )
errorOutput
errorOutput(err: OutputStream) : org.netuno.psamata.os.ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
err | OutputStream |
Return
( org.netuno.psamata.os.ProcessLauncher )
errorOutputLineConsumer
errorOutputLineConsumer() : java.util.function.Consumer
Return
( java.util.function.Consumer )
errorOutputLineConsumer(consumer: java.util.function.Consumer) : org.netuno.psamata.os.ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
consumer | java.util.function.Consumer |
Return
( org.netuno.psamata.os.ProcessLauncher )
errorOutputStream
errorOutputStream() : OutputStream
Return
( OutputStream )
errorOutputStream(err: OutputStream) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
err | OutputStream |
Return
( ProcessLauncher )
errorOutputStream(err: OutputStream) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
err | OutputStream |
Return
( ProcessLauncher )
execute
execute(command: java.lang.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
NAME | TYPE | DESCRIPTION |
---|---|---|
command | java.lang.String[] | 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) : 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
NAME | TYPE | DESCRIPTION |
---|---|---|
command | java.util.List | 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: 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
NAME | TYPE | DESCRIPTION |
---|---|---|
command | Values | The 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: java.lang.String[]) : ProcessResult
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
command | java.lang.String[] |
Return
( ProcessResult )
executeAsync(command: java.util.List) : ProcessResult
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
command | java.util.List |
Return
( ProcessResult )
executeAsync(command: Values) : ProcessResult
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
command | Values |
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
Return
( java.util.function.Consumer )
getErrorOutputStream
getErrorOutputStream() : OutputStream
Return
( OutputStream )
getOnFinish
getOnFinish() : java.util.function.Consumer
Return
( java.util.function.Consumer )
getOnParallel
getOnParallel() : java.util.function.Consumer
Return
( java.util.function.Consumer )
getOutputLineConsumer
getOutputLineConsumer() : java.util.function.Consumer
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
NAME | TYPE | DESCRIPTION |
---|---|---|
inheritErrorOutput | boolean |
Return
( ProcessLauncher )
inheritOutput
inheritOutput() : boolean
Return
( boolean )
inheritOutput(inheritOutput: boolean) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
inheritOutput | boolean |
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
Return
( java.util.function.Consumer )
onFinish(onFinish: java.util.function.Consumer) : org.netuno.psamata.os.ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
onFinish | java.util.function.Consumer |
Return
( org.netuno.psamata.os.ProcessLauncher )
onParallel
onParallel() : java.util.function.Consumer
Return
( java.util.function.Consumer )
onParallel(onParallel: java.util.function.Consumer) : org.netuno.psamata.os.ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
onParallel | java.util.function.Consumer |
Return
( org.netuno.psamata.os.ProcessLauncher )
output
output(out: OutputStream) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
out | OutputStream |
Return
( ProcessLauncher )
outputLineConsumer
outputLineConsumer() : java.util.function.Consumer
Return
( java.util.function.Consumer )
outputLineConsumer(consumer: java.util.function.Consumer) : org.netuno.psamata.os.ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
consumer | java.util.function.Consumer |
Return
( org.netuno.psamata.os.ProcessLauncher )
outputStream
outputStream() : OutputStream
Return
( OutputStream )
outputStream(out: OutputStream) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
out | OutputStream |
Return
( ProcessLauncher )
readErrorOutput
readErrorOutput() : boolean
Return
( boolean )
readErrorOutput(readErrorOutput: boolean) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
readErrorOutput | boolean |
Return
( ProcessLauncher )
readOutput
readOutput() : boolean
Return
( boolean )
readOutput(readOutput: boolean) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
readOutput | boolean |
Return
( ProcessLauncher )
redirectErrorStream
redirectErrorStream() : boolean
Return
( boolean )
redirectErrorStream(redirectErrorStream: boolean) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
redirectErrorStream | boolean |
Return
( ProcessLauncher )
setAutoCloseOutputStreams
setAutoCloseOutputStreams(autoCloseOutputStreams: boolean) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
autoCloseOutputStreams | boolean |
Return
( ProcessLauncher )
setAwait
setAwait(wait: boolean) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
wait | boolean |
Return
( ProcessLauncher )
setDirectory
setDirectory(file: java.io.File) : org.netuno.psamata.os.ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
file | java.io.File |
Return
( org.netuno.psamata.os.ProcessLauncher )
setDirectory(directory: string) : ProcessLauncher
Description
Defines the path where the commands will be executed.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
directory | string | The 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
NAME | TYPE | DESCRIPTION |
---|---|---|
directory | File | The 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
NAME | TYPE | DESCRIPTION |
---|---|---|
directory | Storage | The location where the command will be executed. |
Return
( ProcessLauncher )
Instance of the operating system resource.
setEnv
setEnv(env: Values) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
env | Values |
Return
( ProcessLauncher )
setErrorOutput
setErrorOutput(err: OutputStream) : org.netuno.psamata.os.ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
err | OutputStream |
Return
( org.netuno.psamata.os.ProcessLauncher )
setErrorOutputLineConsumer
setErrorOutputLineConsumer(consumer: java.util.function.Consumer) : org.netuno.psamata.os.ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
consumer | java.util.function.Consumer |
Return
( org.netuno.psamata.os.ProcessLauncher )
setErrorOutputStream
setErrorOutputStream(err: OutputStream) : org.netuno.psamata.os.ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
err | OutputStream |
Return
( org.netuno.psamata.os.ProcessLauncher )
setErrorOutputStream(err: OutputStream) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
err | OutputStream |
Return
( ProcessLauncher )
setErrorStream
setErrorStream(err: OutputStream) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
err | OutputStream |
Return
( ProcessLauncher )
setExitDelay
setExitDelay(timeLimit: long) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
timeLimit | long |
Return
( ProcessLauncher )
setInheritErrorOutput
setInheritErrorOutput(inheritErrorOutput: boolean) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
inheritErrorOutput | boolean |
Return
( ProcessLauncher )
setInheritOutput
setInheritOutput(inheritOutput: boolean) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
inheritOutput | boolean |
Return
( ProcessLauncher )
setOnFinish
setOnFinish(onFinish: java.util.function.Consumer) : org.netuno.psamata.os.ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
onFinish | java.util.function.Consumer |
Return
( org.netuno.psamata.os.ProcessLauncher )
setOnParallel
setOnParallel(onParallel: java.util.function.Consumer) : org.netuno.psamata.os.ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
onParallel | java.util.function.Consumer |
Return
( org.netuno.psamata.os.ProcessLauncher )
setOutput
setOutput(out: OutputStream) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
out | OutputStream |
Return
( ProcessLauncher )
setOutputLineConsumer
setOutputLineConsumer(consumer: java.util.function.Consumer) : org.netuno.psamata.os.ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
consumer | java.util.function.Consumer |
Return
( org.netuno.psamata.os.ProcessLauncher )
setOutputStream
setOutputStream(out: OutputStream) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
out | OutputStream |
Return
( ProcessLauncher )
setReadErrorOutput
setReadErrorOutput(readErrorOutput: boolean) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
readErrorOutput | boolean |
Return
( ProcessLauncher )
setReadOutput
setReadOutput(readOutput: boolean) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
readOutput | boolean |
Return
( ProcessLauncher )
setRedirectErrorStream
setRedirectErrorStream(redirectErrorStream: boolean) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
redirectErrorStream | boolean |
Return
( ProcessLauncher )
setShell
setShell(shell: boolean) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
shell | boolean |
Return
( ProcessLauncher )
setShellCommand
setShellCommand(shellCommand: string) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
shellCommand | string |
Return
( ProcessLauncher )
setShellParameter
setShellParameter(shellParameter: string) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
shellParameter | string |
Return
( ProcessLauncher )
setTimeLimit
setTimeLimit(timeLimit: long) : org.netuno.psamata.os.ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
timeLimit | long |
Return
( org.netuno.psamata.os.ProcessLauncher )
setWaitFor
setWaitFor(waitFor: long) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
waitFor | long |
Return
( ProcessLauncher )
shell
shell() : boolean
Return
( boolean )
shell(shell: boolean) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
shell | boolean |
Return
( ProcessLauncher )
shellCommand
shellCommand() : string
Return
( string )
shellCommand(shellCommand: string) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
shellCommand | string |
Return
( ProcessLauncher )
shellParameter
shellParameter() : string
Return
( string )
shellParameter(shellParameter: string) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
shellParameter | string |
Return
( ProcessLauncher )
timeLimit
timeLimit() : long
Return
( long )
timeLimit(timeLimit: long) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
timeLimit | long |
Return
( ProcessLauncher )
waitFor
waitFor() : long
Return
( long )
waitFor(waitFor: long) : ProcessLauncher
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
waitFor | long |
Return
( ProcessLauncher )