protected static class BaseEmulatorHelper.GcloudEmulatorRunner extends Object implements BaseEmulatorHelper.EmulatorRunner
| Constructor and Description |
|---|
GcloudEmulatorRunner(List<String> commandText,
String versionPrefix,
String minVersion) |
| Modifier and Type | Method and Description |
|---|---|
Process |
getProcess()
Returns the process associated to the emulator, if any.
|
boolean |
isAvailable()
Returns
true 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.
|
public boolean isAvailable()
BaseEmulatorHelper.EmulatorRunnertrue if the emulator associated to this runner is available and can be
started.isAvailable in interface BaseEmulatorHelper.EmulatorRunnerpublic void start()
throws IOException
BaseEmulatorHelper.EmulatorRunnerstart in interface BaseEmulatorHelper.EmulatorRunnerIOExceptionpublic int waitFor(org.threeten.bp.Duration timeout)
throws InterruptedException,
TimeoutException
BaseEmulatorHelper.EmulatorRunnerwaitFor in interface BaseEmulatorHelper.EmulatorRunnerInterruptedExceptionTimeoutExceptionpublic Process getProcess()
BaseEmulatorHelper.EmulatorRunnergetProcess in interface BaseEmulatorHelper.EmulatorRunnerCopyright © 2019 Google LLC. All rights reserved.