Class EmulatorController (2.39.4)

public class EmulatorController

Wraps the Bigtable emulator in a java api.

This class will use the golang binaries embedded in this jar to launch the emulator as an external process and redirect its output to a Logger.

Inheritance

java.lang.Object > EmulatorController

Static Methods

createBundled()

public static EmulatorController createBundled()

Create a new instance of emulator. The emulator will use the bundled binaries in this jar. Please note that the emulator is created in a stopped state, please use #start() after creating it.

Returns
Type Description
EmulatorController
Exceptions
Type Description
IOException

createFromPath(Path path)

public static EmulatorController createFromPath(Path path)
Parameter
Name Description
path Path
Returns
Type Description
EmulatorController

Methods

getPort()

public synchronized int getPort()
Returns
Type Description
int

isRunning()

public synchronized boolean isRunning()
Returns
Type Description
boolean

start()

public synchronized void start()

Starts the emulator process and waits for it to be ready.

Exceptions
Type Description
IOException
TimeoutException
InterruptedException

stop()

public synchronized void stop()

Stops the emulator process.