@InterfaceAudience.Private @InterfaceStability.Unstable public interface ManagedLedgerStorage extends AutoCloseable
ManagedLedgers.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the storage.
|
static ManagedLedgerStorage |
create(ServiceConfiguration conf,
org.apache.pulsar.metadata.api.extended.MetadataStoreExtended metadataStore,
ZooKeeper zkClient,
BookKeeperClientFactory bkProvider,
io.netty.channel.EventLoopGroup eventLoopGroup)
Initialize the
ManagedLedgerStorage from the provided resources. |
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.
|
void initialize(ServiceConfiguration conf, org.apache.pulsar.metadata.api.extended.MetadataStoreExtended metadataStore, ZooKeeper zkClient, BookKeeperClientFactory bookkeeperProvider, io.netty.channel.EventLoopGroup eventLoopGroup) throws Exception
conf - service configzkClient - zk clientbookkeeperProvider - bookkeeper providerExceptionManagedLedgerFactory getManagedLedgerFactory()
ManagedLedgerFactory.ManagedLedgerFactory.org.apache.bookkeeper.stats.StatsProvider getStatsProvider()
BookKeeper getBookKeeperClient()
void close()
throws IOException
close in interface AutoCloseableIOExceptionstatic ManagedLedgerStorage create(ServiceConfiguration conf, org.apache.pulsar.metadata.api.extended.MetadataStoreExtended metadataStore, ZooKeeper zkClient, BookKeeperClientFactory bkProvider, io.netty.channel.EventLoopGroup eventLoopGroup) throws Exception
ManagedLedgerStorage from the provided resources.conf - service configzkClient - zookeeper clientbkProvider - bookkeeper client providerExceptionCopyright © 2017–2022 Apache Software Foundation. All rights reserved.