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.EmulatorRunnerUtility interface to start and run an emulator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProcessgetProcess()Returns the process associated to the emulator, if any.booleanisAvailable()Returnstrueif 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 Detail
-
isAvailable
boolean isAvailable()
Returnstrueif the emulator associated to this runner is available and can be started.
-
start
void start() throws IOExceptionStarts the emulator associated to this runner.- Throws:
IOException
-
waitFor
int waitFor(org.threeten.bp.Duration timeout) throws InterruptedException, TimeoutExceptionWait 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.
-
-