Class AbstractMetadataDriver
- java.lang.Object
-
- org.apache.pulsar.metadata.bookkeeper.AbstractMetadataDriver
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
PulsarMetadataBookieDriver,PulsarMetadataClientDriver
public abstract class AbstractMetadataDriver extends java.lang.Object implements java.io.Closeable
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.bookkeeper.conf.AbstractConfigurationconfprotected org.apache.bookkeeper.meta.LayoutManagerlayoutManagerprotected org.apache.bookkeeper.meta.LedgerManagerFactoryledgerManagerFactoryprotected java.lang.StringledgersRootPathstatic java.lang.StringMETADATA_STORE_INSTANCEstatic java.lang.StringMETADATA_STORE_SCHEMEprotected org.apache.bookkeeper.discover.RegistrationClientregistrationClientprotected org.apache.bookkeeper.discover.RegistrationManagerregistrationManagerprotected MetadataStoreExtendedstore
-
Constructor Summary
Constructors Constructor Description AbstractMetadataDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.lang.StringgetScheme()protected voidinitialize(org.apache.bookkeeper.conf.AbstractConfiguration conf)
-
-
-
Field Detail
-
METADATA_STORE_SCHEME
public static final java.lang.String METADATA_STORE_SCHEME
- See Also:
- Constant Field Values
-
METADATA_STORE_INSTANCE
public static final java.lang.String METADATA_STORE_INSTANCE
- See Also:
- Constant Field Values
-
store
protected MetadataStoreExtended store
-
registrationClient
protected org.apache.bookkeeper.discover.RegistrationClient registrationClient
-
registrationManager
protected org.apache.bookkeeper.discover.RegistrationManager registrationManager
-
ledgerManagerFactory
protected org.apache.bookkeeper.meta.LedgerManagerFactory ledgerManagerFactory
-
layoutManager
protected org.apache.bookkeeper.meta.LayoutManager layoutManager
-
conf
protected org.apache.bookkeeper.conf.AbstractConfiguration conf
-
ledgersRootPath
protected java.lang.String ledgersRootPath
-
-
Method Detail
-
initialize
protected void initialize(org.apache.bookkeeper.conf.AbstractConfiguration conf) throws org.apache.bookkeeper.meta.exceptions.MetadataException- Throws:
org.apache.bookkeeper.meta.exceptions.MetadataException
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
getScheme
public java.lang.String getScheme()
-
-