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