Package org.apache.bookkeeper.meta
Class HierarchicalLedgerManagerFactory
- java.lang.Object
-
- org.apache.bookkeeper.meta.AbstractZkLedgerManagerFactory
-
- org.apache.bookkeeper.meta.LegacyHierarchicalLedgerManagerFactory
-
- org.apache.bookkeeper.meta.HierarchicalLedgerManagerFactory
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,LedgerManagerFactory
- Direct Known Subclasses:
LongHierarchicalLedgerManagerFactory
public class HierarchicalLedgerManagerFactory extends LegacyHierarchicalLedgerManagerFactory
Legacy Hierarchical Ledger Manager Factory.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
-
Fields inherited from class org.apache.bookkeeper.meta.LegacyHierarchicalLedgerManagerFactory
conf, CUR_VERSION
-
Fields inherited from class org.apache.bookkeeper.meta.AbstractZkLedgerManagerFactory
V1, zk
-
-
Constructor Summary
Constructors Constructor Description HierarchicalLedgerManagerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LedgerIdGenerator
newLedgerIdGenerator()
Return the ledger id generator, which is used for global unique ledger id generation.LedgerManager
newLedgerManager()
return ledger manager for client-side to manage ledger metadata.-
Methods inherited from class org.apache.bookkeeper.meta.LegacyHierarchicalLedgerManagerFactory
close, getCurrentVersion, initialize, newLedgerAuditorManager, newLedgerUnderreplicationManager
-
Methods inherited from class org.apache.bookkeeper.meta.AbstractZkLedgerManagerFactory
createNewLMFactory, format, newLedgerManagerFactory, validateAndNukeExistingCluster
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
newLedgerIdGenerator
public LedgerIdGenerator newLedgerIdGenerator()
Description copied from interface:LedgerManagerFactory
Return the ledger id generator, which is used for global unique ledger id generation.- Specified by:
newLedgerIdGenerator
in interfaceLedgerManagerFactory
- Overrides:
newLedgerIdGenerator
in classLegacyHierarchicalLedgerManagerFactory
- Returns:
- ledger id generator.
-
newLedgerManager
public LedgerManager newLedgerManager()
Description copied from interface:LedgerManagerFactory
return ledger manager for client-side to manage ledger metadata.- Specified by:
newLedgerManager
in interfaceLedgerManagerFactory
- Overrides:
newLedgerManager
in classLegacyHierarchicalLedgerManagerFactory
- Returns:
- ledger manager
- See Also:
LedgerManager
-
-