A process managed by the shell.
package |
Default |
---|
__construct()
exitCode() : integer
integer
the process exit code when the status is {@link ExecStatus#TERMINATED} otherwise {@code null}
getSession() : \io\vertx\jphp\ext\shell\session\Session
getTty() : \io\vertx\jphp\ext\shell\term\Tty
interrupt( $arg0 = null) : boolean
interrupt()
Attempt to interrupt the process.
param $completionHandler [callable] handler called after interrupt callback interrupt($completionHandler)
callable
boolean
true if the process caught the signal
resume( $arg0 = null, $arg1 = null) : void
resume()
Suspend the process.
param $foreground [boolean] resume($foreground)
Suspend the process.
param $completionHandler [callable] handler called after resume callback resume($completionHandler)
Suspend the process.
param $foreground [boolean] param $completionHandler [callable] handler called after resume callback resume($foreground, $completionHandler)
boolean | callable
callable
run( $arg0 = null) : void
run()
Run the process.
param $foregraound [boolean] run($foregraound)
boolean
setSession( $arg0) : $this
Session
$this
this object
setTty( $arg0) : $this
Tty
$this
this object
status() : string
string
the current process status
suspend( $arg0 = null) : void
suspend()
Resume the process.
param $completionHandler [callable] handler called after suspend callback suspend($completionHandler)
callable
terminate( $arg0 = null) : void
terminate()
Terminate the process.
param $completionHandler [callable] handler called after end callback terminate($completionHandler)
callable
terminatedHandler( $arg0) : $this
callable
$this
this object
toBackground( $arg0 = null) : void
toBackground()
Set the process in background.
param $completionHandler [callable] handler called after background callback toBackground($completionHandler)
callable
toForeground( $arg0 = null) : void
toForeground()
Set the process in foreground.
param $completionHandler [callable] handler called after foreground callback toForeground($completionHandler)
callable