Class EmulatorController (2.23.0)

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
TypeDescription
EmulatorController
Exceptions
TypeDescription
IOException

createFromPath(Path path)

public static EmulatorController createFromPath(Path path)
Parameter
NameDescription
pathPath
Returns
TypeDescription
EmulatorController

Methods

getPort()

public synchronized int getPort()
Returns
TypeDescription
int

isRunning()

public synchronized boolean isRunning()
Returns
TypeDescription
boolean

start()

public synchronized void start()

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

Exceptions
TypeDescription
IOException
TimeoutException
InterruptedException

stop()

public synchronized void stop()

Stops the emulator process.