Interface JobController


  • public interface JobController
    The job controller.

    Author:
    Julien Viet
    • Method Detail

      • foregroundJob

        Job foregroundJob()
        Returns:
        the current foreground job
      • jobs

        Set<Job> jobs()
        Returns:
        the active jobs
      • 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 process
        line - 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.