Class MSLedgerManagerFactory

  • All Implemented Interfaces:
    java.lang.AutoCloseable, LedgerManagerFactory

    public class MSLedgerManagerFactory
    extends AbstractZkLedgerManagerFactory
    Deprecated.
    since 4.7.0
    MetaStore Based Ledger Manager Factory.

    MSLedgerManagerFactory is a legacy abstraction that mixing zookeeper with a metadata store interface. It is not used by any production systems. It should be deprecated soon.

    • Constructor Detail

      • MSLedgerManagerFactory

        public MSLedgerManagerFactory()
        Deprecated.
    • Method Detail

      • getCurrentVersion

        public int getCurrentVersion()
        Deprecated.
        Description copied from interface: LedgerManagerFactory
        Return current factory version.
        Returns:
        current version used by factory.
      • initialize

        public LedgerManagerFactory initialize​(AbstractConfiguration conf,
                                               LayoutManager layoutManager,
                                               int factoryVersion)
                                        throws java.io.IOException
        Deprecated.
        Description copied from interface: LedgerManagerFactory
        Initialize a factory.
        Parameters:
        conf - Configuration object used to initialize factory
        layoutManager - Layout manager used for initialize ledger manager factory
        factoryVersion - What version used to initialize factory.
        Returns:
        ledger manager factory instance
        Throws:
        java.io.IOException - when fail to initialize the factory.
      • close

        public void close()
                   throws java.io.IOException
        Deprecated.
        Description copied from interface: LedgerManagerFactory
        Uninitialize the factory.
        Throws:
        java.io.IOException - when fail to uninitialize the factory.
      • key2LedgerId

        static java.lang.Long key2LedgerId​(java.lang.String key)
        Deprecated.
      • ledgerId2Key

        static java.lang.String ledgerId2Key​(java.lang.Long lid)
        Deprecated.
      • rangeToString

        static java.lang.String rangeToString​(java.lang.Long firstLedger,
                                              boolean firstInclusive,
                                              java.lang.Long lastLedger,
                                              boolean lastInclusive)
        Deprecated.
      • entries2Ledgers

        static java.util.SortedSet<java.lang.Long> entries2Ledgers​(java.util.Iterator<MetastoreTableItem> entries)
        Deprecated.
      • newLedgerIdGenerator

        public LedgerIdGenerator newLedgerIdGenerator()
        Deprecated.
        Description copied from interface: LedgerManagerFactory
        Return the ledger id generator, which is used for global unique ledger id generation.
        Returns:
        ledger id generator.
      • newLedgerManager

        public LedgerManager newLedgerManager()
        Deprecated.
        Description copied from interface: LedgerManagerFactory
        return ledger manager for client-side to manage ledger metadata.
        Returns:
        ledger manager
        See Also:
        LedgerManager
      • format

        public void format​(AbstractConfiguration<?> conf,
                           LayoutManager layoutManager)
                    throws java.lang.InterruptedException,
                           org.apache.zookeeper.KeeperException,
                           java.io.IOException
        Deprecated.
        Description copied from interface: LedgerManagerFactory
        Format the ledger metadata for LedgerManager.
        Specified by:
        format in interface LedgerManagerFactory
        Overrides:
        format in class AbstractZkLedgerManagerFactory
        Parameters:
        conf - Configuration instance
        layoutManager - Layout manager
        Throws:
        java.lang.InterruptedException
        org.apache.zookeeper.KeeperException
        java.io.IOException
      • newLedgerAuditorManager

        public LedgerAuditorManager newLedgerAuditorManager()
        Deprecated.
        Description copied from interface: LedgerManagerFactory
        Return a ledger auditor manager, which is used to coordinate the auto-recovery process.
        Returns:
        ledger auditor manager
        See Also:
        LedgerAuditorManager