vertx / io.vertx.reactivex.ext.shell.command / CommandProcess

CommandProcess

open class CommandProcess : Tty

The command process provides interaction with the process of the command provided by Vert.x Shell. NOTE: This class has been automatically generated from the io.vertx.ext.shell.command.CommandProcess non RX-ified interface using Vert.x codegen.

Constructors

<init>

CommandProcess(delegate: CommandProcess)

Properties

__TYPE_ARG

static val __TYPE_ARG: TypeArg<CommandProcess>

Functions

args

open fun args(): MutableList<String>

argsTokens

open fun argsTokens(): MutableList<CliToken>

backgroundHandler

open fun backgroundHandler(handler: Handler<Void>): CommandProcess

Set a background handler, this handler is called when the command is running and put to background.

commandLine

open fun commandLine(): CommandLine

end

open fun end(): Unit

End the process with the exit status

open fun end(status: Int): Unit

End the process.

endHandler

open fun endHandler(handler: Handler<Void>): CommandProcess

Set an end handler, this handler is called when the command is ended, for instance the command is running and the shell closes.

equals

open fun equals(other: Any?): Boolean

foregroundHandler

open fun foregroundHandler(handler: Handler<Void>): CommandProcess

Set a foreground handler, this handler is called when the command is running and put to foreground.

getDelegate

open fun getDelegate(): CommandProcess

hashCode

open fun hashCode(): Int

interruptHandler

open fun interruptHandler(handler: Handler<Void>): CommandProcess

Set an interrupt handler, this handler is called when the command is interrupted, for instance user press Ctrl-C.

isForeground

open fun isForeground(): Boolean

newInstance

open static fun newInstance(arg: CommandProcess): CommandProcess

resizehandler

open fun resizehandler(handler: Handler<Void>): CommandProcess

resumeHandler

open fun resumeHandler(handler: Handler<Void>): CommandProcess

Set a resume handler, this handler is called when the command is resumed, for instance user types bg or fg to resume the command.

session

open fun session(): Session

stdinHandler

open fun stdinHandler(handler: Handler<String>): CommandProcess

suspendHandler

open fun suspendHandler(handler: Handler<Void>): CommandProcess

Set a suspend handler, this handler is called when the command is suspended, for instance user press Ctrl-Z.

toString

open fun toString(): String

vertx

open fun vertx(): Vertx

write

open fun write(data: String): CommandProcess

Write some text to the standard output.