Package org.apache.pulsar.broker
Class ManagedLedgerClientFactory
java.lang.Object
org.apache.pulsar.broker.ManagedLedgerClientFactory
- All Implemented Interfaces:
AutoCloseable,ManagedLedgerStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the storage.Map<org.apache.pulsar.common.policies.data.EnsemblePlacementPolicyConfig,BookKeeper> Get the default storage class.Lookup a storage class by name.Get all configured storage class instances.voidinitialize(ServiceConfiguration conf, org.apache.pulsar.metadata.api.extended.MetadataStoreExtended metadataStore, BookKeeperClientFactory bookkeeperProvider, io.netty.channel.EventLoopGroup eventLoopGroup, io.opentelemetry.api.OpenTelemetry openTelemetry) Initialize the managed ledger storage.
-
Constructor Details
-
ManagedLedgerClientFactory
public ManagedLedgerClientFactory()
-
-
Method Details
-
initialize
public void initialize(ServiceConfiguration conf, org.apache.pulsar.metadata.api.extended.MetadataStoreExtended metadataStore, BookKeeperClientFactory bookkeeperProvider, io.netty.channel.EventLoopGroup eventLoopGroup, io.opentelemetry.api.OpenTelemetry openTelemetry) throws Exception Description copied from interface:ManagedLedgerStorageInitialize the managed ledger storage.- Specified by:
initializein interfaceManagedLedgerStorage- Parameters:
conf- service configbookkeeperProvider- bookkeeper provider- Throws:
Exception
-
getStorageClasses
Description copied from interface:ManagedLedgerStorageGet all configured storage class instances.- Specified by:
getStorageClassesin interfaceManagedLedgerStorage- Returns:
- all configured storage class instances
-
getManagedLedgerStorageClass
Description copied from interface:ManagedLedgerStorageLookup a storage class by name.- Specified by:
getManagedLedgerStorageClassin interfaceManagedLedgerStorage- Parameters:
name- storage class name- Returns:
- storage class instance, or empty if not found
-
getDefaultStorageClass
Description copied from interface:ManagedLedgerStorageGet the default storage class.- Specified by:
getDefaultStorageClassin interfaceManagedLedgerStorage- Returns:
- default storage class
-
getBkEnsemblePolicyToBookKeeperMap
public Map<org.apache.pulsar.common.policies.data.EnsemblePlacementPolicyConfig,BookKeeper> getBkEnsemblePolicyToBookKeeperMap() -
close
Description copied from interface:ManagedLedgerStorageClose the storage.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceManagedLedgerStorage- Throws:
IOException
-