Package io.vertx.ext.shell.system

## Interface JobController

-     public interface JobController

  The job controller.

  Author:
    Julien Viet

- - ### Method Summary

    All Methods Instance Methods Abstract 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.
    `Job` | `foregroundJob()` |
    `Job` | `getJob​(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

    - #### 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.