Interface BaseEmulatorHelper.EmulatorRunner

All Known Implementing Classes:
BaseEmulatorHelper.DownloadableEmulatorRunner, BaseEmulatorHelper.GcloudEmulatorRunner
Enclosing class:
BaseEmulatorHelper<T extends ServiceOptions>

protected static interface BaseEmulatorHelper.EmulatorRunner
Utility interface to start and run an emulator.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the process associated to the emulator, if any.
    boolean
    Returns true if the emulator associated to this runner is available and can be started.
    void
    Starts the emulator associated to this runner.
    int
    waitFor(org.threeten.bp.Duration timeout)
    Wait for the emulator associated to this runner to terminate, returning the exit status.
  • Method Details

    • isAvailable

      boolean isAvailable()
      Returns true if the emulator associated to this runner is available and can be started.
    • start

      void start() throws IOException
      Starts the emulator associated to this runner.
      Throws:
      IOException
    • waitFor

      int waitFor(org.threeten.bp.Duration timeout) throws InterruptedException, TimeoutException
      Wait for the emulator associated to this runner to terminate, returning the exit status.
      Throws:
      InterruptedException
      TimeoutException
    • getProcess

      Process getProcess()
      Returns the process associated to the emulator, if any.