Package com.google.cloud.testing
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 TypeMethodDescriptionReturns the process associated to the emulator, if any.booleanReturnstrueif the emulator associated to this runner is available and can be started.voidstart()Starts the emulator associated to this runner.intwaitFor(org.threeten.bp.Duration timeout) Wait for the emulator associated to this runner to terminate, returning the exit status.
-
Method Details
-
isAvailable
boolean isAvailable()Returnstrueif the emulator associated to this runner is available and can be started. -
start
Starts the emulator associated to this runner.- Throws:
IOException
-
waitFor
Wait for the emulator associated to this runner to terminate, returning the exit status.- Throws:
InterruptedExceptionTimeoutException
-
getProcess
Process getProcess()Returns the process associated to the emulator, if any.
-