Class EmulatorController
- java.lang.Object
-
- com.google.cloud.bigtable.emulator.core.EmulatorController
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EmulatorController
createBundled()
Create a new instance of emulator.static EmulatorController
createFromPath(Path path)
int
getPort()
boolean
isRunning()
void
start()
Starts the emulator process and waits for it to be ready.void
stop()
Stops the emulator process.
-
-
-
Method Detail
-
createFromPath
public static EmulatorController createFromPath(Path path)
-
createBundled
public static EmulatorController createBundled() throws IOException
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 usestart()
after creating it.- Throws:
IOException
-
isRunning
public boolean isRunning()
-
start
public void start() throws IOException, TimeoutException, InterruptedException
Starts the emulator process and waits for it to be ready.
-
stop
public void stop()
Stops the emulator process.
-
getPort
public int getPort()
-
-