Class CommandSessionImpl.JobImpl

java.lang.Object
org.apache.felix.gogo.runtime.CommandSessionImpl.JobImpl
All Implemented Interfaces:
Runnable, Job
Enclosing class:
CommandSessionImpl

class CommandSessionImpl.JobImpl extends Object implements Job, Runnable
  • Field Details

  • Constructor Details

  • Method Details

    • addPipe

      void addPipe(Pipe pipe)
    • id

      public int id()
      Specified by:
      id in interface Job
    • command

      public CharSequence command()
      Specified by:
      command in interface Job
    • status

      public Job.Status status()
      Specified by:
      status in interface Job
    • suspend

      public void suspend()
      Specified by:
      suspend in interface Job
    • background

      public void background()
      Specified by:
      background in interface Job
    • foreground

      public void foreground()
      Specified by:
      foreground in interface Job
    • interrupt

      public void interrupt()
      Specified by:
      interrupt in interface Job
    • done

      protected void done()
    • setStatus

      private void setStatus(Job.Status newStatus)
    • setStatus

      private void setStatus(Job.Status newStatus, boolean callListeners)
    • result

      public Pipe.Result result()
      Specified by:
      result in interface Job
    • parent

      public Job parent()
      Specified by:
      parent in interface Job
    • start

      public Pipe.Result start(Job.Status status) throws InterruptedException
      Start the job. If the job is started in foreground, waits for the job to finish or to be suspended or moved to background.
      Parameters:
      status - the desired job status
      Returns:
      null if the job has been suspended or moved to background,
      Throws:
      InterruptedException
    • processes

      public List<Process> processes()
      Specified by:
      processes in interface Job
    • session

      public CommandSession session()
      Specified by:
      session in interface Job
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • add

      public void add(Job child)