Interface BaseEmulatorHelper.EmulatorRunner (2.49.0)

protected static interface BaseEmulatorHelper.EmulatorRunner

Utility interface to start and run an emulator.

Methods

getProcess()

public abstract Process getProcess()

Returns the process associated to the emulator, if any.

Returns
Type Description
Process

isAvailable()

public abstract boolean isAvailable()

Returns true if the emulator associated to this runner is available and can be started.

Returns
Type Description
boolean

start()

public abstract void start()

Starts the emulator associated to this runner.

Exceptions
Type Description
IOException

waitFor(Duration timeout)

public abstract int waitFor(Duration timeout)

This method is obsolete. Use #waitForDuration(java.time.Duration) instead

Parameter
Name Description
timeout org.threeten.bp.Duration
Returns
Type Description
int
Exceptions
Type Description
InterruptedException
TimeoutException

waitForDuration(Duration timeout)

public default int waitForDuration(Duration timeout)

Wait for the emulator associated to this runner to terminate, returning the exit status.

Parameter
Name Description
timeout Duration
Returns
Type Description
int
Exceptions
Type Description
InterruptedException
TimeoutException