Package org.apache.bookkeeper.meta
Class NullMetadataBookieDriver
- java.lang.Object
-
- org.apache.bookkeeper.meta.NullMetadataBookieDriver
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,MetadataBookieDriver
public class NullMetadataBookieDriver extends java.lang.Object implements MetadataBookieDriver
A no-op implementation of MetadataBookieDriver.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NullMetadataBookieDriver.NullLayoutManager
A no-op implementation of LayoutManager.static class
NullMetadataBookieDriver.NullLedgerAuditorManager
A no-op implementation of LedgerAuditorManager.static class
NullMetadataBookieDriver.NullLedgerIdGenerator
A no-op implementation of LedgerIdGenerator.static class
NullMetadataBookieDriver.NullLedgerManager
A no-op implementation of LedgerManager.static class
NullMetadataBookieDriver.NullLedgerManagerFactory
A no-op implementation of LedgerManagerFactory.static class
NullMetadataBookieDriver.NullLedgerUnderreplicationManager
A no-op implementation of LedgerUnderreplicationManager.static class
NullMetadataBookieDriver.NullRegistrationManager
A no-op implementation of RegistrationManager.
-
Constructor Summary
Constructors Constructor Description NullMetadataBookieDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
RegistrationManager
createRegistrationManager()
Create the registration manager used for registering/unregistering bookies.LayoutManager
getLayoutManager()
Return the layout manager.LedgerManagerFactory
getLedgerManagerFactory()
Return the ledger manager factory used for accessing ledger metadata.java.lang.String
getScheme()
Get the scheme of the metadata driver.MetadataBookieDriver
initialize(ServerConfiguration conf, StatsLogger statsLogger)
Initialize the metadata driver.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.bookkeeper.meta.MetadataBookieDriver
disableHealthCheck, enableHealthCheck, isHealthCheckEnabled
-
-
-
-
Method Detail
-
initialize
public MetadataBookieDriver initialize(ServerConfiguration conf, StatsLogger statsLogger)
Description copied from interface:MetadataBookieDriver
Initialize the metadata driver.- Specified by:
initialize
in interfaceMetadataBookieDriver
- Parameters:
conf
- configurationstatsLogger
- stats logger- Returns:
- metadata driver
-
getScheme
public java.lang.String getScheme()
Description copied from interface:MetadataBookieDriver
Get the scheme of the metadata driver.- Specified by:
getScheme
in interfaceMetadataBookieDriver
- Returns:
- the scheme of the metadata driver.
-
createRegistrationManager
public RegistrationManager createRegistrationManager()
Description copied from interface:MetadataBookieDriver
Create the registration manager used for registering/unregistering bookies.- Specified by:
createRegistrationManager
in interfaceMetadataBookieDriver
- Returns:
- the registration manager used for registering/unregistering bookies.
-
getLedgerManagerFactory
public LedgerManagerFactory getLedgerManagerFactory()
Description copied from interface:MetadataBookieDriver
Return the ledger manager factory used for accessing ledger metadata.- Specified by:
getLedgerManagerFactory
in interfaceMetadataBookieDriver
- Returns:
- the ledger manager factory used for accessing ledger metadata.
-
getLayoutManager
public LayoutManager getLayoutManager()
Description copied from interface:MetadataBookieDriver
Return the layout manager.- Specified by:
getLayoutManager
in interfaceMetadataBookieDriver
- Returns:
- the layout manager.
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceMetadataBookieDriver
-
-