public class LocalBookkeeperEnsemble extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LocalBookkeeperEnsemble.ZKConnectionWatcher |
| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTION_TIMEOUT |
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
LocalBookkeeperEnsemble(int numberOfBookies,
int zkPort,
int bkBasePort,
int streamStoragePort,
String zkDataDirName,
String bkDataDirName,
boolean clearOldData,
String advertisedAddress) |
LocalBookkeeperEnsemble(int numberOfBookies,
int zkPort,
int bkBasePort,
String zkDataDirName,
String bkDataDirName,
boolean clearOldData) |
LocalBookkeeperEnsemble(int numberOfBookies,
int zkPort,
int bkBasePort,
String zkDataDirName,
String bkDataDirName,
boolean clearOldData,
String advertisedAddress) |
LocalBookkeeperEnsemble(int numberOfBookies,
int zkPort,
int streamStoragePort,
String zkDataDirName,
String bkDataDirName,
boolean clearOldData,
String advertisedAddress,
Supplier<Integer> portManager) |
LocalBookkeeperEnsemble(int numberOfBookies,
int zkPort,
Supplier<Integer> portManager) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.bookkeeper.proto.BookieServer[] |
getBookies() |
org.apache.zookeeper.ZooKeeper |
getZkClient() |
org.apache.zookeeper.server.ZooKeeperServer |
getZkServer() |
void |
start() |
void |
startStandalone() |
void |
startStandalone(org.apache.bookkeeper.conf.ServerConfiguration conf,
boolean enableStreamStorage) |
void |
stop() |
static boolean |
waitForServerUp(String hp,
long timeout) |
protected static final org.slf4j.Logger LOG
public static final int CONNECTION_TIMEOUT
public LocalBookkeeperEnsemble(int numberOfBookies,
int zkPort,
Supplier<Integer> portManager)
public LocalBookkeeperEnsemble(int numberOfBookies,
int zkPort,
int bkBasePort,
String zkDataDirName,
String bkDataDirName,
boolean clearOldData)
public LocalBookkeeperEnsemble(int numberOfBookies,
int zkPort,
int bkBasePort,
String zkDataDirName,
String bkDataDirName,
boolean clearOldData,
String advertisedAddress)
public LocalBookkeeperEnsemble(int numberOfBookies,
int zkPort,
int bkBasePort,
int streamStoragePort,
String zkDataDirName,
String bkDataDirName,
boolean clearOldData,
String advertisedAddress)
public void startStandalone(org.apache.bookkeeper.conf.ServerConfiguration conf,
boolean enableStreamStorage)
throws Exception
Exceptionpublic static boolean waitForServerUp(String hp, long timeout)
public org.apache.zookeeper.ZooKeeper getZkClient()
public org.apache.zookeeper.server.ZooKeeperServer getZkServer()
public org.apache.bookkeeper.proto.BookieServer[] getBookies()
Copyright © 2017–2019 Apache Software Foundation. All rights reserved.