Interface ZooKeeperServerEmbedded

All Superinterfaces:
AutoCloseable

@Public @Evolving public interface ZooKeeperServerEmbedded extends AutoCloseable
This API allows you to start a ZooKeeper server node from Java code

The server will run inside the same process.

Typical usecases are:

  • Running automated tests
  • Launch ZooKeeper server with a Java based service management system

Please take into consideration that in production usually it is better to not run the client together with the server in order to avoid race conditions, especially around how ephemeral nodes work.

  • Method Details