protected static class BaseEmulatorHelper.DownloadableEmulatorRunner extends Object implements BaseEmulatorHelper.EmulatorRunner
Constructor and Description |
---|
DownloadableEmulatorRunner(List<String> commandText,
URL downloadUrl,
String md5CheckSum) |
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.EmulatorRunner
true
if the emulator associated to this runner is available and can be
started.isAvailable
in interface BaseEmulatorHelper.EmulatorRunner
public void start() throws IOException
BaseEmulatorHelper.EmulatorRunner
start
in interface BaseEmulatorHelper.EmulatorRunner
IOException
public int waitFor(org.threeten.bp.Duration timeout) throws InterruptedException, TimeoutException
BaseEmulatorHelper.EmulatorRunner
waitFor
in interface BaseEmulatorHelper.EmulatorRunner
InterruptedException
TimeoutException
public Process getProcess()
BaseEmulatorHelper.EmulatorRunner
getProcess
in interface BaseEmulatorHelper.EmulatorRunner
Copyright © 2019 Google LLC. All rights reserved.