public class BookKeeperClientFactoryImpl extends Object implements BookKeeperClientFactory
| Constructor and Description |
|---|
BookKeeperClientFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
BookKeeper |
create(ServiceConfiguration conf,
ZooKeeper zkClient,
io.netty.channel.EventLoopGroup eventLoopGroup,
Optional<Class<? extends EnsemblePlacementPolicy>> ensemblePlacementPolicyClass,
Map<String,Object> properties) |
BookKeeper |
create(ServiceConfiguration conf,
ZooKeeper zkClient,
io.netty.channel.EventLoopGroup eventLoopGroup,
Optional<Class<? extends EnsemblePlacementPolicy>> ensemblePlacementPolicyClass,
Map<String,Object> properties,
org.apache.bookkeeper.stats.StatsLogger statsLogger) |
static void |
setDefaultEnsemblePlacementPolicy(AtomicReference<ZooKeeperCache> rackawarePolicyZkCache,
AtomicReference<ZooKeeperCache> clientIsolationZkCache,
org.apache.bookkeeper.conf.ClientConfiguration bkConf,
ServiceConfiguration conf,
ZooKeeper zkClient) |
public BookKeeper create(ServiceConfiguration conf, ZooKeeper zkClient, io.netty.channel.EventLoopGroup eventLoopGroup, Optional<Class<? extends EnsemblePlacementPolicy>> ensemblePlacementPolicyClass, Map<String,Object> properties) throws IOException
create in interface BookKeeperClientFactoryIOExceptionpublic BookKeeper create(ServiceConfiguration conf, ZooKeeper zkClient, io.netty.channel.EventLoopGroup eventLoopGroup, Optional<Class<? extends EnsemblePlacementPolicy>> ensemblePlacementPolicyClass, Map<String,Object> properties, org.apache.bookkeeper.stats.StatsLogger statsLogger) throws IOException
create in interface BookKeeperClientFactoryIOExceptionpublic static void setDefaultEnsemblePlacementPolicy(AtomicReference<ZooKeeperCache> rackawarePolicyZkCache, AtomicReference<ZooKeeperCache> clientIsolationZkCache, org.apache.bookkeeper.conf.ClientConfiguration bkConf, ServiceConfiguration conf, ZooKeeper zkClient)
public void close()
close in interface BookKeeperClientFactoryCopyright © 2017–2022 Apache Software Foundation. All rights reserved.