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 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:
      initialize in interface org.apache.bookkeeper.meta.LedgerManagerFactory
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.apache.bookkeeper.meta.LedgerManagerFactory
      Throws:
      IOException
    • getCurrentVersion

      public int getCurrentVersion()
      Specified by:
      getCurrentVersion in interface org.apache.bookkeeper.meta.LedgerManagerFactory
    • newLedgerIdGenerator

      public org.apache.bookkeeper.meta.LedgerIdGenerator newLedgerIdGenerator()
      Specified by:
      newLedgerIdGenerator in interface org.apache.bookkeeper.meta.LedgerManagerFactory
    • newLedgerManager

      public org.apache.bookkeeper.meta.LedgerManager newLedgerManager()
      Specified by:
      newLedgerManager in interface org.apache.bookkeeper.meta.LedgerManagerFactory
    • newLedgerUnderreplicationManager

      public org.apache.bookkeeper.meta.LedgerUnderreplicationManager newLedgerUnderreplicationManager() throws org.apache.bookkeeper.replication.ReplicationException.CompatibilityException
      Specified by:
      newLedgerUnderreplicationManager in interface org.apache.bookkeeper.meta.LedgerManagerFactory
      Throws:
      org.apache.bookkeeper.replication.ReplicationException.CompatibilityException
    • newLedgerAuditorManager

      public org.apache.bookkeeper.meta.LedgerAuditorManager newLedgerAuditorManager() throws IOException, InterruptedException
      Specified by:
      newLedgerAuditorManager in interface org.apache.bookkeeper.meta.LedgerManagerFactory
      Throws:
      IOException
      InterruptedException
    • format

      public void format(org.apache.bookkeeper.conf.AbstractConfiguration<?> abstractConfiguration, org.apache.bookkeeper.meta.LayoutManager layoutManager) throws InterruptedException, IOException
      Specified by:
      format in interface org.apache.bookkeeper.meta.LedgerManagerFactory
      Throws:
      InterruptedException
      IOException
    • validateAndNukeExistingCluster

      public boolean validateAndNukeExistingCluster(org.apache.bookkeeper.conf.AbstractConfiguration<?> conf, org.apache.bookkeeper.meta.LayoutManager layoutManager) throws InterruptedException, IOException
      Specified by:
      validateAndNukeExistingCluster in interface org.apache.bookkeeper.meta.LedgerManagerFactory
      Throws:
      InterruptedException
      IOException