Class Emulator
java.lang.Object
com.google.cloud.bigtable.emulator.v2.Emulator
Wraps the Bigtable emulator in a java api and decorates it with grpc channel builders.
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
.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Emulator
Create a new instance of emulator.static Emulator
createFromPath
(Path path) io.grpc.ManagedChannel
io.grpc.ManagedChannel
int
getPort()
void
start()
Starts the emulator process and waits for it to be ready.void
stop()
Stops the emulator process.
-
Method Details
-
createFromPath
-
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 usestart()
after creating it.- Throws:
IOException
-
start
Starts the emulator process and waits for it to be ready. -
stop
public void stop()Stops the emulator process. -
getPort
public int getPort() -
getDataChannel
public io.grpc.ManagedChannel getDataChannel() -
getAdminChannel
public io.grpc.ManagedChannel getAdminChannel()
-