vertx / io.vertx.ext.shell.system / Process

# Process

`interface Process`

A process managed by the shell.

Author
Julien Viet

### Functions

exitCode | `abstract fun exitCode(): Int`
getSession | `abstract fun getSession(): Session`
getTty | `abstract fun getTty(): Tty`
interrupt | `open fun interrupt(): Boolean` `abstract fun interrupt(completionHandler: Handler<Void>): Boolean` Attempt to interrupt the process.
resume | `open fun resume(): Unit` `open fun resume(foreground: Boolean): Unit` `open fun resume(completionHandler: Handler<Void>): Unit` `abstract fun resume(foreground: Boolean, completionHandler: Handler<Void>): Unit` Suspend the process.
run | `open fun run(): Unit` `abstract fun run(foregraound: Boolean): Unit` Run the process.
setSession | `abstract fun setSession(session: Session): Process` Set the process session
setTty | `abstract fun setTty(tty: Tty): Process` Set the process tty.
status | `abstract fun status(): ExecStatus`
suspend | `open fun suspend(): Unit` `abstract fun suspend(completionHandler: Handler<Void>): Unit` Resume the process.
terminate | `open fun terminate(): Unit` `abstract fun terminate(completionHandler: Handler<Void>): Unit` Terminate the process.
terminatedHandler | `abstract fun terminatedHandler(handler: Handler<Int>): Process` Set an handler for being notified when the process terminates.
toBackground | `open fun toBackground(): Unit` `abstract fun toBackground(completionHandler: Handler<Void>): Unit` Set the process in background.
toForeground | `open fun toForeground(): Unit` `abstract fun toForeground(completionHandler: Handler<Void>): Unit` Set the process in foreground.