JobController

The job controller.<p/>

package

Default

Methods

__construct

__construct() 

Close the shell session and terminate all the underlying jobs.

close( $arg0 = null) : void

close()

Close the controller and terminate all the underlying jobs, a closed controller does not accept anymore jobs.

param $completionHandler [callable] close($completionHandler)

Arguments

$arg0

callable

Create a job wrapping a process.

createJob( $arg0,  $arg1) : \io\vertx\jphp\ext\shell\system\Job

Arguments

$arg0

Process

$arg1

string

Response

\io\vertx\jphp\ext\shell\system\Job

the created job

foregroundJob

foregroundJob() : \io\vertx\jphp\ext\shell\system\Job

Response

\io\vertx\jphp\ext\shell\system\Job

the current foreground job

Returns an active job in this session by its .

getJob( $arg0) : \io\vertx\jphp\ext\shell\system\Job

Arguments

$arg0

integer

Response

\io\vertx\jphp\ext\shell\system\Job

the job of {@literal null} when not found

jobs

jobs() : array

Response

array

the active jobs