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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Process
getProcess()
Returns the process associated to the emulator, if any.boolean
isAvailable()
Returnstrue
if the emulator associated to this runner is available and can be started.void
start()
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 Detail
-
isAvailable
boolean isAvailable()
Returnstrue
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.
-
-