public static class ZooKeeperServerEmbedded.ZookKeeperServerEmbeddedBuilder extends Object
| Constructor and Description |
|---|
ZookKeeperServerEmbeddedBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ZooKeeperServerEmbedded.ZookKeeperServerEmbeddedBuilder |
baseDir(Path baseDir)
Base directory of the server.
|
ZooKeeperServerEmbedded |
build()
Validate the configuration and create the server, without starting it.
|
ZooKeeperServerEmbedded.ZookKeeperServerEmbeddedBuilder |
configuration(Properties configuration)
Set the contents of the main configuration as it would be in zk_server.conf file.
|
ZooKeeperServerEmbedded.ZookKeeperServerEmbeddedBuilder |
exitHandler(ExitHandler exitHandler)
Set the behaviour in case of hard system errors, see
ExitHandler. |
public ZooKeeperServerEmbedded.ZookKeeperServerEmbeddedBuilder baseDir(Path baseDir)
If you do not set a 'dataDir' configuration entry the system will use a subdirectory of baseDir.
baseDir - public ZooKeeperServerEmbedded.ZookKeeperServerEmbeddedBuilder configuration(Properties configuration)
configuration - the configurationpublic ZooKeeperServerEmbedded.ZookKeeperServerEmbeddedBuilder exitHandler(ExitHandler exitHandler)
ExitHandler.exitHandler - the handlerpublic ZooKeeperServerEmbedded build() throws Exception
ExceptionZooKeeperServerEmbedded.start()Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.