Class RunSessionImpl

java.lang.Object
aQute.remote.plugin.RunSessionImpl
All Implemented Interfaces:
aQute.bnd.build.RunSession

public class RunSessionImpl extends Object implements aQute.bnd.build.RunSession
A session is a connection to a remote framework. It is possible to have many sessions at the same time. This object maintains the state of the connection and provides means to cancel the connection.
  • Field Details

  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface aQute.bnd.build.RunSession
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface aQute.bnd.build.RunSession
    • getJdb

      public int getJdb()
      Specified by:
      getJdb in interface aQute.bnd.build.RunSession
    • stderr

      public void stderr(Appendable app) throws Exception
      Specified by:
      stderr in interface aQute.bnd.build.RunSession
      Throws:
      Exception
    • stdout

      public void stdout(Appendable app) throws Exception
      Specified by:
      stdout in interface aQute.bnd.build.RunSession
      Throws:
      Exception
    • stdin

      public void stdin(String input) throws Exception
      Specified by:
      stdin in interface aQute.bnd.build.RunSession
      Throws:
      Exception
    • launch

      public int launch() throws Exception
      Specified by:
      launch in interface aQute.bnd.build.RunSession
      Throws:
      Exception
    • cancel

      public void cancel() throws Exception
      Specified by:
      cancel in interface aQute.bnd.build.RunSession
      Throws:
      Exception
    • getProperties

      public Map<String,?> getProperties()
      Specified by:
      getProperties in interface aQute.bnd.build.RunSession
    • close

      public void close() throws IOException
      Throws:
      IOException
    • getExitCode

      public int getExitCode()
      Specified by:
      getExitCode in interface aQute.bnd.build.RunSession
    • waitTillStarted

      public void waitTillStarted(long ms) throws InterruptedException
      Specified by:
      waitTillStarted in interface aQute.bnd.build.RunSession
      Throws:
      InterruptedException
    • getHost

      public String getHost()
      Specified by:
      getHost in interface aQute.bnd.build.RunSession
    • getTimeout

      public long getTimeout()
      Specified by:
      getTimeout in interface aQute.bnd.build.RunSession
    • getAgent

      public int getAgent()
      Specified by:
      getAgent in interface aQute.bnd.build.RunSession
    • validate

      public boolean validate(Callable<Boolean> isCancelled) throws Exception
      Specified by:
      validate in interface aQute.bnd.build.RunSession
      Throws:
      Exception