Package io.vertx.ext.shell.system
Interface JobController
-
public interface JobControllerThe job controller.- Author:
- Julien Viet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the shell session and terminate all the underlying jobs.voidclose(Handler<Void> completionHandler)Close the controller and terminate all the underlying jobs, a closed controller does not accept anymore jobs.JobcreateJob(Process process, String line)Create a job wrapping a process.JobforegroundJob()JobgetJob(int id)Returns an active job in this session by its id.Set<Job>jobs()
-
-
-
Method Detail
-
foregroundJob
Job foregroundJob()
- Returns:
- the current foreground job
-
getJob
Job getJob(int id)
Returns an active job in this session by its id.- Parameters:
id- the job id- Returns:
- the job of null when not found
-
createJob
Job createJob(Process process, String line)
Create a job wrapping a process.- Parameters:
process- the processline- the line- Returns:
- the created job
-
close
void close(Handler<Void> completionHandler)
Close the controller and terminate all the underlying jobs, a closed controller does not accept anymore jobs.
-
close
void close()
Close the shell session and terminate all the underlying jobs.
-
-