Pular para o conteúdo principal

ProcessLauncher

Gerencia a execução de processos, permite executar programas externos e comandos de terminal.


autoCloseOutputStreams​


autoCloseOutputStreams() : boolean​

Retorno​

( boolean )


autoCloseOutputStreams(autoCloseOutputStreams: boolean) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
autoCloseOutputStreamsboolean
Retorno​

( ProcessLauncher )


await​


await() : boolean​

Retorno​

( boolean )


await(wait: boolean) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
waitboolean
Retorno​

( ProcessLauncher )


directory​


directory() : string​

Descrição​

Obtém o caminho onde os comandos serão executados.

Retorno​

( string )

O local onde o comando será executado.


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

Atributos​
NOMETIPODESCRIÇÃO
filejava.io.File
Retorno​

( org.netuno.psamata.os.ProcessLauncher )


directory(diretorio: string) : ProcessLauncher​

Descrição​

Define o caminho onde os comandos serão executados.

Atributos​
NOMETIPODESCRIÇÃO
diretoriostringO local onde o comando será executado.
Retorno​

( ProcessLauncher )

Instância do recurso de sistema operacional.


directory(diretorio: File) : ProcessLauncher​

Descrição​

Define o caminho onde os comandos serão executados.

Atributos​
NOMETIPODESCRIÇÃO
diretorioFileO local onde o comando será executado.
Retorno​

( ProcessLauncher )

Instância do recurso de sistema operacional.


directory(diretorio: Storage) : ProcessLauncher​

Descrição​

Define o caminho onde os comandos serão executados.

Atributos​
NOMETIPODESCRIÇÃO
diretorioStorageO local onde o comando será executado.
Retorno​

( ProcessLauncher )

Instância do recurso de sistema operacional.


env​


env() : Values​

Retorno​

( Values )


env(env: Values) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
envValues
Retorno​

( ProcessLauncher )


errorOutput​


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

Atributos​
NOMETIPODESCRIÇÃO
errOutputStream
Retorno​

( org.netuno.psamata.os.ProcessLauncher )


errorOutputLineConsumer​


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

Retorno​

( java.util.function.Consumer )


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

Atributos​
NOMETIPODESCRIÇÃO
consumerjava.util.function.Consumer
Retorno​

( org.netuno.psamata.os.ProcessLauncher )


errorOutputStream​


errorOutputStream() : OutputStream​

Retorno​

( OutputStream )


errorOutputStream(err: OutputStream) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
errOutputStream
Retorno​

( ProcessLauncher )


errorOutputStream(err: OutputStream) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
errOutputStream
Retorno​

( ProcessLauncher )


execute​


execute(comando: string[]) : ProcessResult​

Descrição​

Executa um comando no sistema operacional e obtém o resultado da execução, o primeiro item é o comando e os seguintes são parâmetros.

Atributos​
NOMETIPODESCRIÇÃO
comandostring[]O comando e parâmetros opcionais que serão executados.
Retorno​

( ProcessResult )

Resultado da execução do comando no sistema operacional, incluí o output.


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

Descrição​

Executa um comando no sistema operacional e obtém o resultado da execução, o primeiro item é o comando e os seguintes são parâmetros.

Atributos​
NOMETIPODESCRIÇÃO
comandojava.util.ListO comando e parâmetros opcionais que serão executados.
Retorno​

( ProcessResult )

Resultado da execução do comando no sistema operacional, incluí o output.


execute(comando: Values) : ProcessResult​

Descrição​

Executa um comando no sistema operacional e obtém o resultado da execução, o primeiro item é o comando e os seguintes são parâmetros.

Atributos​
NOMETIPODESCRIÇÃO
comandoValuesO comando e parâmetros opcionais que serão executados.
Retorno​

( ProcessResult )

Resultado da execução do comando no sistema operacional, incluí o output.


executeAsync​


executeAsync(command: string[]) : ProcessResult​

Atributos​
NOMETIPODESCRIÇÃO
commandstring[]
Retorno​

( ProcessResult )


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

Atributos​
NOMETIPODESCRIÇÃO
commandjava.util.List
Retorno​

( ProcessResult )


executeAsync(command: Values) : ProcessResult​

Atributos​
NOMETIPODESCRIÇÃO
commandValues
Retorno​

( ProcessResult )


getAwait​


getAwait() : boolean​

Retorno​

( boolean )


getDirectory​


getDirectory() : string​

Descrição​

Obtém o caminho onde os comandos serão executados.

Retorno​

( string )

O local onde o comando será executado.


getEnv​


getEnv() : Values​

Retorno​

( Values )


getErrorOutputLineConsumer​


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

Retorno​

( java.util.function.Consumer )


getErrorOutputStream​


getErrorOutputStream() : OutputStream​

Retorno​

( OutputStream )


getOnFinish​


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

Retorno​

( java.util.function.Consumer )


getOnParallel​


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

Retorno​

( java.util.function.Consumer )


getOutputLineConsumer​


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

Retorno​

( java.util.function.Consumer )


getOutputStream​


getOutputStream() : OutputStream​

Retorno​

( OutputStream )


getShell​


getShell() : boolean​

Retorno​

( boolean )


getShellCommand​


getShellCommand() : string​

Retorno​

( string )


getShellParameter​


getShellParameter() : string​

Retorno​

( string )


getTimeLimit​


getTimeLimit() : long​

Retorno​

( long )


getWaitFor​


getWaitFor() : long​

Retorno​

( long )


inheritErrorOutput​


inheritErrorOutput() : boolean​

Retorno​

( boolean )


inheritErrorOutput(inheritErrorOutput: boolean) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
inheritErrorOutputboolean
Retorno​

( ProcessLauncher )


inheritOutput​


inheritOutput() : boolean​

Retorno​

( boolean )


inheritOutput(inheritOutput: boolean) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
inheritOutputboolean
Retorno​

( ProcessLauncher )


isAutoCloseOutputStreams​


isAutoCloseOutputStreams() : boolean​

Retorno​

( boolean )


isInheritErrorOutput​


isInheritErrorOutput() : boolean​

Retorno​

( boolean )


isInheritOutput​


isInheritOutput() : boolean​

Retorno​

( boolean )


isReadErrorOutput​


isReadErrorOutput() : boolean​

Retorno​

( boolean )


isReadOutput​


isReadOutput() : boolean​

Retorno​

( boolean )


isRedirectErrorStream​


isRedirectErrorStream() : boolean​

Retorno​

( boolean )


onFinish​


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

Retorno​

( java.util.function.Consumer )


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

Atributos​
NOMETIPODESCRIÇÃO
onFinishjava.util.function.Consumer
Retorno​

( org.netuno.psamata.os.ProcessLauncher )


onParallel​


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

Retorno​

( java.util.function.Consumer )


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

Atributos​
NOMETIPODESCRIÇÃO
onParalleljava.util.function.Consumer
Retorno​

( org.netuno.psamata.os.ProcessLauncher )


output​


output(out: OutputStream) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
outOutputStream
Retorno​

( ProcessLauncher )


outputLineConsumer​


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

Retorno​

( java.util.function.Consumer )


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

Atributos​
NOMETIPODESCRIÇÃO
consumerjava.util.function.Consumer
Retorno​

( org.netuno.psamata.os.ProcessLauncher )


outputStream​


outputStream() : OutputStream​

Retorno​

( OutputStream )


outputStream(out: OutputStream) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
outOutputStream
Retorno​

( ProcessLauncher )


readErrorOutput​


readErrorOutput() : boolean​

Retorno​

( boolean )


readErrorOutput(readErrorOutput: boolean) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
readErrorOutputboolean
Retorno​

( ProcessLauncher )


readOutput​


readOutput() : boolean​

Retorno​

( boolean )


readOutput(readOutput: boolean) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
readOutputboolean
Retorno​

( ProcessLauncher )


redirectErrorStream​


redirectErrorStream() : boolean​

Retorno​

( boolean )


redirectErrorStream(redirectErrorStream: boolean) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
redirectErrorStreamboolean
Retorno​

( ProcessLauncher )


setAutoCloseOutputStreams​


setAutoCloseOutputStreams(autoCloseOutputStreams: boolean) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
autoCloseOutputStreamsboolean
Retorno​

( ProcessLauncher )


setAwait​


setAwait(wait: boolean) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
waitboolean
Retorno​

( ProcessLauncher )


setDirectory​


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

Atributos​
NOMETIPODESCRIÇÃO
filejava.io.File
Retorno​

( org.netuno.psamata.os.ProcessLauncher )


setDirectory(diretorio: string) : ProcessLauncher​

Descrição​

Define o caminho onde os comandos serão executados.

Atributos​
NOMETIPODESCRIÇÃO
diretoriostringO local onde o comando será executado.
Retorno​

( ProcessLauncher )

Instância do recurso de sistema operacional.


setDirectory(diretorio: File) : ProcessLauncher​

Descrição​

Define o caminho onde os comandos serão executados.

Atributos​
NOMETIPODESCRIÇÃO
diretorioFileO local onde o comando será executado.
Retorno​

( ProcessLauncher )

Instância do recurso de sistema operacional.


setDirectory(diretorio: Storage) : ProcessLauncher​

Descrição​

Define o caminho onde os comandos serão executados.

Atributos​
NOMETIPODESCRIÇÃO
diretorioStorageO local onde o comando será executado.
Retorno​

( ProcessLauncher )

Instância do recurso de sistema operacional.


setEnv​


setEnv(env: Values) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
envValues
Retorno​

( ProcessLauncher )


setErrorOutput​


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

Atributos​
NOMETIPODESCRIÇÃO
errOutputStream
Retorno​

( org.netuno.psamata.os.ProcessLauncher )


setErrorOutputLineConsumer​


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

Atributos​
NOMETIPODESCRIÇÃO
consumerjava.util.function.Consumer
Retorno​

( org.netuno.psamata.os.ProcessLauncher )


setErrorOutputStream​


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

Atributos​
NOMETIPODESCRIÇÃO
errOutputStream
Retorno​

( org.netuno.psamata.os.ProcessLauncher )


setErrorOutputStream(err: OutputStream) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
errOutputStream
Retorno​

( ProcessLauncher )


setErrorStream​


setErrorStream(err: OutputStream) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
errOutputStream
Retorno​

( ProcessLauncher )


setExitDelay​


setExitDelay(timeLimit: long) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
timeLimitlong
Retorno​

( ProcessLauncher )


setInheritErrorOutput​


setInheritErrorOutput(inheritErrorOutput: boolean) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
inheritErrorOutputboolean
Retorno​

( ProcessLauncher )


setInheritOutput​


setInheritOutput(inheritOutput: boolean) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
inheritOutputboolean
Retorno​

( ProcessLauncher )


setOnFinish​


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

Atributos​
NOMETIPODESCRIÇÃO
onFinishjava.util.function.Consumer
Retorno​

( org.netuno.psamata.os.ProcessLauncher )


setOnParallel​


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

Atributos​
NOMETIPODESCRIÇÃO
onParalleljava.util.function.Consumer
Retorno​

( org.netuno.psamata.os.ProcessLauncher )


setOutput​


setOutput(out: OutputStream) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
outOutputStream
Retorno​

( ProcessLauncher )


setOutputLineConsumer​


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

Atributos​
NOMETIPODESCRIÇÃO
consumerjava.util.function.Consumer
Retorno​

( org.netuno.psamata.os.ProcessLauncher )


setOutputStream​


setOutputStream(out: OutputStream) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
outOutputStream
Retorno​

( ProcessLauncher )


setReadErrorOutput​


setReadErrorOutput(readErrorOutput: boolean) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
readErrorOutputboolean
Retorno​

( ProcessLauncher )


setReadOutput​


setReadOutput(readOutput: boolean) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
readOutputboolean
Retorno​

( ProcessLauncher )


setRedirectErrorStream​


setRedirectErrorStream(redirectErrorStream: boolean) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
redirectErrorStreamboolean
Retorno​

( ProcessLauncher )


setShell​


setShell(shell: boolean) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
shellboolean
Retorno​

( ProcessLauncher )


setShellCommand​


setShellCommand(shellCommand: string) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
shellCommandstring
Retorno​

( ProcessLauncher )


setShellParameter​


setShellParameter(shellParameter: string) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
shellParameterstring
Retorno​

( ProcessLauncher )


setTimeLimit​


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

Atributos​
NOMETIPODESCRIÇÃO
timeLimitlong
Retorno​

( org.netuno.psamata.os.ProcessLauncher )


setWaitFor​


setWaitFor(waitFor: long) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
waitForlong
Retorno​

( ProcessLauncher )


shell​


shell() : boolean​

Retorno​

( boolean )


shell(shell: boolean) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
shellboolean
Retorno​

( ProcessLauncher )


shellCommand​


shellCommand() : string​

Retorno​

( string )


shellCommand(shellCommand: string) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
shellCommandstring
Retorno​

( ProcessLauncher )


shellParameter​


shellParameter() : string​

Retorno​

( string )


shellParameter(shellParameter: string) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
shellParameterstring
Retorno​

( ProcessLauncher )


timeLimit​


timeLimit() : long​

Retorno​

( long )


timeLimit(timeLimit: long) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
timeLimitlong
Retorno​

( ProcessLauncher )


waitFor​


waitFor() : long​

Retorno​

( long )


waitFor(waitFor: long) : ProcessLauncher​

Atributos​
NOMETIPODESCRIÇÃO
waitForlong
Retorno​

( ProcessLauncher )