Class PulsarLedgerManagerFactory
java.lang.Object
org.apache.pulsar.metadata.bookkeeper.PulsarLedgerManagerFactory
- All Implemented Interfaces:
AutoCloseable,org.apache.bookkeeper.meta.LedgerManagerFactory
public class PulsarLedgerManagerFactory
extends Object
implements org.apache.bookkeeper.meta.LedgerManagerFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidformat(org.apache.bookkeeper.conf.AbstractConfiguration<?> abstractConfiguration, org.apache.bookkeeper.meta.LayoutManager layoutManager) intorg.apache.bookkeeper.meta.LedgerManagerFactoryinitialize(org.apache.bookkeeper.conf.AbstractConfiguration conf, org.apache.bookkeeper.meta.LayoutManager layoutManager, int factoryVersion) org.apache.bookkeeper.meta.LedgerAuditorManagerorg.apache.bookkeeper.meta.LedgerIdGeneratororg.apache.bookkeeper.meta.LedgerManagerorg.apache.bookkeeper.meta.LedgerUnderreplicationManagerbooleanvalidateAndNukeExistingCluster(org.apache.bookkeeper.conf.AbstractConfiguration<?> conf, org.apache.bookkeeper.meta.LayoutManager layoutManager)
-
Constructor Details
-
PulsarLedgerManagerFactory
public PulsarLedgerManagerFactory()
-
-
Method Details
-
initialize
public org.apache.bookkeeper.meta.LedgerManagerFactory initialize(org.apache.bookkeeper.conf.AbstractConfiguration conf, org.apache.bookkeeper.meta.LayoutManager layoutManager, int factoryVersion) throws IOException - Specified by:
initializein interfaceorg.apache.bookkeeper.meta.LedgerManagerFactory- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.apache.bookkeeper.meta.LedgerManagerFactory- Throws:
IOException
-
getCurrentVersion
public int getCurrentVersion()- Specified by:
getCurrentVersionin interfaceorg.apache.bookkeeper.meta.LedgerManagerFactory
-
newLedgerIdGenerator
public org.apache.bookkeeper.meta.LedgerIdGenerator newLedgerIdGenerator()- Specified by:
newLedgerIdGeneratorin interfaceorg.apache.bookkeeper.meta.LedgerManagerFactory
-
newLedgerManager
public org.apache.bookkeeper.meta.LedgerManager newLedgerManager()- Specified by:
newLedgerManagerin interfaceorg.apache.bookkeeper.meta.LedgerManagerFactory
-
newLedgerUnderreplicationManager
public org.apache.bookkeeper.meta.LedgerUnderreplicationManager newLedgerUnderreplicationManager() throws org.apache.bookkeeper.replication.ReplicationException.CompatibilityException- Specified by:
newLedgerUnderreplicationManagerin interfaceorg.apache.bookkeeper.meta.LedgerManagerFactory- Throws:
org.apache.bookkeeper.replication.ReplicationException.CompatibilityException
-
newLedgerAuditorManager
public org.apache.bookkeeper.meta.LedgerAuditorManager newLedgerAuditorManager() throws IOException, InterruptedException- Specified by:
newLedgerAuditorManagerin interfaceorg.apache.bookkeeper.meta.LedgerManagerFactory- Throws:
IOExceptionInterruptedException
-
format
public void format(org.apache.bookkeeper.conf.AbstractConfiguration<?> abstractConfiguration, org.apache.bookkeeper.meta.LayoutManager layoutManager) throws InterruptedException, IOException - Specified by:
formatin interfaceorg.apache.bookkeeper.meta.LedgerManagerFactory- Throws:
InterruptedExceptionIOException
-
validateAndNukeExistingCluster
public boolean validateAndNukeExistingCluster(org.apache.bookkeeper.conf.AbstractConfiguration<?> conf, org.apache.bookkeeper.meta.LayoutManager layoutManager) throws InterruptedException, IOException - Specified by:
validateAndNukeExistingClusterin interfaceorg.apache.bookkeeper.meta.LedgerManagerFactory- Throws:
InterruptedExceptionIOException
-