Interface MetadataBookieDriver

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
NullMetadataBookieDriver, ZKMetadataBookieDriver

public interface MetadataBookieDriver extends AutoCloseable
Driver to manage all the metadata managers required by a bookie server.
  • Method Details

    • initialize

      Initialize the metadata driver.
      Parameters:
      conf - configuration
      statsLogger - stats logger
      Returns:
      metadata driver
      Throws:
      MetadataException
    • getScheme

      String getScheme()
      Get the scheme of the metadata driver.
      Returns:
      the scheme of the metadata driver.
    • createRegistrationManager

      RegistrationManager createRegistrationManager()
      Create the registration manager used for registering/unregistering bookies.
      Returns:
      the registration manager used for registering/unregistering bookies.
    • getLedgerManagerFactory

      LedgerManagerFactory getLedgerManagerFactory() throws MetadataException
      Return the ledger manager factory used for accessing ledger metadata.
      Returns:
      the ledger manager factory used for accessing ledger metadata.
      Throws:
      MetadataException
    • getLayoutManager

      LayoutManager getLayoutManager()
      Return the layout manager.
      Returns:
      the layout manager.
    • isHealthCheckEnabled

      default CompletableFuture<Boolean> isHealthCheckEnabled()
      Return health check is enable or disable.
      Returns:
      true if health check is enable, otherwise false.
    • disableHealthCheck

      default CompletableFuture<Void> disableHealthCheck()
      Disable health check.
    • enableHealthCheck

      default CompletableFuture<Void> enableHealthCheck()
      Enable health check.
    • close

      void close()
      Specified by:
      close in interface AutoCloseable