Package org.apache.bookkeeper.meta
Class FlatLedgerManagerFactory
- java.lang.Object
-
- org.apache.bookkeeper.meta.AbstractZkLedgerManagerFactory
-
- org.apache.bookkeeper.meta.FlatLedgerManagerFactory
-
- All Implemented Interfaces:
java.lang.AutoCloseable,LedgerManagerFactory
@Deprecated public class FlatLedgerManagerFactory extends AbstractZkLedgerManagerFactory
Deprecated.since 4.7.0. The implementation will be still available but not recommended to use.Flat Ledger Manager Factory.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) AbstractConfigurationconfDeprecated.static intCUR_VERSIONDeprecated.static java.lang.StringNAMEDeprecated.-
Fields inherited from class org.apache.bookkeeper.meta.AbstractZkLedgerManagerFactory
V1, zk
-
-
Constructor Summary
Constructors Constructor Description FlatLedgerManagerFactory()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.Uninitialize the factory.intgetCurrentVersion()Deprecated.Return current factory version.LedgerManagerFactoryinitialize(AbstractConfiguration conf, LayoutManager layoutManager, int factoryVersion)Deprecated.Initialize a factory.LedgerAuditorManagernewLedgerAuditorManager()Deprecated.Return a ledger auditor manager, which is used to coordinate the auto-recovery process.LedgerIdGeneratornewLedgerIdGenerator()Deprecated.Return the ledger id generator, which is used for global unique ledger id generation.LedgerManagernewLedgerManager()Deprecated.return ledger manager for client-side to manage ledger metadata.LedgerUnderreplicationManagernewLedgerUnderreplicationManager()Deprecated.Return a ledger underreplication manager, which is used to mark ledgers as unreplicated, and to retrieve a ledger which is underreplicated so that it can be rereplicated.-
Methods inherited from class org.apache.bookkeeper.meta.AbstractZkLedgerManagerFactory
createNewLMFactory, format, newLedgerManagerFactory, validateAndNukeExistingCluster
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
Deprecated.- See Also:
- Constant Field Values
-
CUR_VERSION
public static final int CUR_VERSION
Deprecated.- See Also:
- Constant Field Values
-
conf
AbstractConfiguration conf
Deprecated.
-
-
Method Detail
-
getCurrentVersion
public int getCurrentVersion()
Deprecated.Description copied from interface:LedgerManagerFactoryReturn 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:LedgerManagerFactoryInitialize a factory.- Parameters:
conf- Configuration object used to initialize factorylayoutManager- Layout manager used for initialize ledger manager factoryfactoryVersion- 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.IOExceptionDeprecated.Description copied from interface:LedgerManagerFactoryUninitialize the factory.- Throws:
java.io.IOException- when fail to uninitialize the factory.
-
newLedgerIdGenerator
public LedgerIdGenerator newLedgerIdGenerator()
Deprecated.Description copied from interface:LedgerManagerFactoryReturn 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:LedgerManagerFactoryreturn ledger manager for client-side to manage ledger metadata.- Returns:
- ledger manager
- See Also:
LedgerManager
-
newLedgerUnderreplicationManager
public LedgerUnderreplicationManager newLedgerUnderreplicationManager() throws ReplicationException.UnavailableException, java.lang.InterruptedException, ReplicationException.CompatibilityException
Deprecated.Description copied from interface:LedgerManagerFactoryReturn a ledger underreplication manager, which is used to mark ledgers as unreplicated, and to retrieve a ledger which is underreplicated so that it can be rereplicated.- Returns:
- ledger underreplication manager
- Throws:
ReplicationException.UnavailableExceptionjava.lang.InterruptedExceptionReplicationException.CompatibilityException- See Also:
LedgerUnderreplicationManager
-
newLedgerAuditorManager
public LedgerAuditorManager newLedgerAuditorManager()
Deprecated.Description copied from interface:LedgerManagerFactoryReturn a ledger auditor manager, which is used to coordinate the auto-recovery process.- Returns:
- ledger auditor manager
- See Also:
LedgerAuditorManager
-
-