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 |
|---|---|
void |
disconnectZookeeper(ZooKeeper zooKeeper) |
org.apache.bookkeeper.proto.BookieServer[] |
getBookies() |
ZooKeeper |
getZkClient() |
org.apache.zookeeper.server.ZooKeeperServer |
getZkServer() |
int |
getZookeeperPort() |
org.apache.zookeeper.server.ServerCnxn |
getZookeeperServerConnection(ZooKeeper zooKeeper) |
void |
runStreamStorage(org.apache.commons.configuration.CompositeConfiguration conf) |
void |
start() |
void |
start(boolean enableStreamStorage) |
void |
startBK() |
void |
startBK(int i) |
void |
startStandalone() |
void |
startStandalone(org.apache.bookkeeper.conf.ServerConfiguration conf,
boolean enableStreamStorage) |
void |
stop() |
void |
stopBK() |
void |
stopBK(int i) |
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 disconnectZookeeper(ZooKeeper zooKeeper)
public org.apache.zookeeper.server.ServerCnxn getZookeeperServerConnection(ZooKeeper zooKeeper)
public void runStreamStorage(org.apache.commons.configuration.CompositeConfiguration conf)
throws Exception
Exceptionpublic void startStandalone(org.apache.bookkeeper.conf.ServerConfiguration conf,
boolean enableStreamStorage)
throws Exception
Exceptionpublic void stopBK(int i)
public void stopBK()
public static boolean waitForServerUp(String hp, long timeout)
public ZooKeeper getZkClient()
public org.apache.zookeeper.server.ZooKeeperServer getZkServer()
public org.apache.bookkeeper.proto.BookieServer[] getBookies()
public int getZookeeperPort()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.