java.lang.Object
io.vertx.mutiny.ext.shell.system.Job
All Implemented Interfaces:
MutinyDelegate

public class Job extends Object implements MutinyDelegate
A job executed in a JobController, grouping one or several process.

The job life cycle can be controlled with the run(), resume() and suspend() and interrupt() methods.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

    • __TYPE_ARG

      public static final TypeArg<Job> __TYPE_ARG
  • Constructor Details

    • Job

      public Job(io.vertx.ext.shell.system.Job delegate)
    • Job

      public Job(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.shell.system.Job getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • id

      public int id()
      Returns:
      the job id
    • status

      public io.vertx.ext.shell.system.ExecStatus status()
      Returns:
      the job exec status
    • lastStopped

      public long lastStopped()
      Returns:
      when the job was last stopped
    • line

      public String line()
      Returns:
      the execution line of the job, i.e the shell command line that launched this job
    • setTty

      public Job setTty(Tty tty)
      Parameters:
      tty - the tty to use
      Returns:
      this object
    • setSession

      public Job setSession(Session session)
      Parameters:
      session - the session to use
      Returns:
      this object
    • statusUpdateHandler

      public Job statusUpdateHandler(Consumer<io.vertx.ext.shell.system.ExecStatus> handler)
      Parameters:
      handler - the terminate handler
      Returns:
    • run

      public Job run()
      Returns:
      this object
    • interrupt

      public boolean interrupt()
      Returns:
      true if the job is actually interrupted
    • resume

      public Job resume()
      Returns:
    • toBackground

      public Job toBackground()
      Returns:
      this object
    • toForeground

      public Job toForeground()
      Returns:
      this object
    • resume

      public Job resume(boolean foreground)
      Parameters:
      foreground - true when the job is resumed in foreground
      Returns:
      the instance of Job to chain method calls.
    • suspend

      public Job suspend()
      Returns:
      this object
    • terminate

      public void terminate()
    • process

      public Process process()
      Returns:
      the first process in the job
    • newInstance

      public static Job newInstance(io.vertx.ext.shell.system.Job arg)