public class ManagedLedgerClientFactory extends Object implements ManagedLedgerStorage
| Constructor and Description |
|---|
ManagedLedgerClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the storage.
|
Map<org.apache.pulsar.common.policies.data.EnsemblePlacementPolicyConfig,BookKeeper> |
getBkEnsemblePolicyToBookKeeperMap() |
BookKeeper |
getBookKeeperClient()
Return the default bookkeeper client.
|
ManagedLedgerFactory |
getManagedLedgerFactory()
Return the factory to create
ManagedLedgerFactory. |
org.apache.bookkeeper.stats.StatsProvider |
getStatsProvider()
Return the stats provider to expose the stats of the storage implementation.
|
void |
initialize(ServiceConfiguration conf,
org.apache.pulsar.metadata.api.extended.MetadataStoreExtended metadataStore,
ZooKeeper zkClient,
BookKeeperClientFactory bookkeeperProvider,
io.netty.channel.EventLoopGroup eventLoopGroup)
Initialize the managed ledger storage.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic void initialize(ServiceConfiguration conf, org.apache.pulsar.metadata.api.extended.MetadataStoreExtended metadataStore, ZooKeeper zkClient, BookKeeperClientFactory bookkeeperProvider, io.netty.channel.EventLoopGroup eventLoopGroup) throws Exception
ManagedLedgerStorageinitialize in interface ManagedLedgerStorageconf - service configzkClient - zk clientbookkeeperProvider - bookkeeper providerExceptionpublic ManagedLedgerFactory getManagedLedgerFactory()
ManagedLedgerStorageManagedLedgerFactory.getManagedLedgerFactory in interface ManagedLedgerStorageManagedLedgerFactory.public BookKeeper getBookKeeperClient()
ManagedLedgerStoragegetBookKeeperClient in interface ManagedLedgerStoragepublic org.apache.bookkeeper.stats.StatsProvider getStatsProvider()
ManagedLedgerStoragegetStatsProvider in interface ManagedLedgerStoragepublic Map<org.apache.pulsar.common.policies.data.EnsemblePlacementPolicyConfig,BookKeeper> getBkEnsemblePolicyToBookKeeperMap()
public void close()
throws IOException
ManagedLedgerStorageclose in interface AutoCloseableclose in interface ManagedLedgerStorageIOExceptionCopyright © 2017–2022 Apache Software Foundation. All rights reserved.