A job executed in a @see \io\vertx\jphp\ext\shell\system\JobController, grouping one or several process.<p/>
The job life cycle can be controlled with the @see \io\vertx\jphp\ext\shell\system\Job::run, @see \io\vertx\jphp\ext\shell\system\Job::resume and @see \io\vertx\jphp\ext\shell\system\Job::suspend and @see \io\vertx\jphp\ext\shell\system\Job::interrupt methods.
package |
Default |
---|
__construct()
id() : integer
integer
the job id
interrupt() : boolean
boolean
true if the job is actually interrupted
lastStopped() : integer
integer
when the job was last stopped
line() : string
string
the execution line of the job, i.e the shell command line that launched this job
process() : \io\vertx\jphp\ext\shell\system\Process
resume( $arg0 = null) : $this
resume()
Resume the job.
param $foreground [boolean] true when the job is resumed in foreground resume($foreground)
boolean
$this
run() : $this
$this
this object
setSession( $arg0) : $this
Session
$this
this object
setTty( $arg0) : $this
Tty
$this
this object
status() : string
string
the job exec status
statusUpdateHandler( $arg0) : $this
callable
$this
this object
suspend() : $this
$this
this object
terminate() : void
toBackground() : $this
$this
this object
toForeground() : $this
$this
this object