Class JobController
- java.lang.Object
-
- io.vertx.reactivex.ext.shell.system.JobController
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<JobController>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description JobController(JobController delegate)
JobController(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the shell session and terminate all the underlying jobs.void
close(Handler<Void> completionHandler)
Close the controller and terminate all the underlying jobs, a closed controller does not accept anymore jobs.Job
createJob(Process process, String line)
Create a job wrapping a process.boolean
equals(Object o)
Job
foregroundJob()
JobController
getDelegate()
Job
getJob(int id)
Returns an active job in this session by its .int
hashCode()
Set<Job>
jobs()
static JobController
newInstance(JobController arg)
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<JobController> __TYPE_ARG
-
-
Constructor Detail
-
JobController
public JobController(JobController delegate)
-
JobController
public JobController(Object delegate)
-
-
Method Detail
-
getDelegate
public JobController getDelegate()
-
foregroundJob
public Job foregroundJob()
- Returns:
- the current foreground job
-
getJob
public Job getJob(int id)
Returns an active job in this session by its .- Parameters:
id
- the job id- Returns:
- the job of when not found
-
createJob
public Job createJob(Process process, String line)
Create a job wrapping a process.- Parameters:
process
- the processline
- the line- Returns:
- the created job
-
close
public void close(Handler<Void> completionHandler)
Close the controller and terminate all the underlying jobs, a closed controller does not accept anymore jobs.- Parameters:
completionHandler
-
-
close
public void close()
Close the shell session and terminate all the underlying jobs.
-
newInstance
public static JobController newInstance(JobController arg)
-
-