Package org.apache.bookkeeper.server
Class EmbeddedServer.Builder
- java.lang.Object
-
- org.apache.bookkeeper.server.EmbeddedServer.Builder
-
- Enclosing class:
- EmbeddedServer
public static class EmbeddedServer.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmbeddedServer.Builder
allocator(io.netty.buffer.ByteBufAllocator allocator)
EmbeddedServer
build()
Build the bookie server.EmbeddedServer.Builder
diskChecker(DiskChecker diskChecker)
EmbeddedServer.Builder
indexDirsManager(LedgerDirsManager indexDirsManager)
EmbeddedServer.Builder
ledgerDirsManager(LedgerDirsManager ledgerDirsManager)
EmbeddedServer.Builder
ledgerManagerFactory(LedgerManagerFactory ledgerManagerFactory)
EmbeddedServer.Builder
metadataDriver(MetadataBookieDriver metadataDriver)
EmbeddedServer.Builder
registrationManager(RegistrationManager registrationManager)
EmbeddedServer.Builder
statsProvider(StatsProvider statsProvider)
EmbeddedServer.Builder
uncleanShutdownDetection(UncleanShutdownDetection uncleanShutdownDetection)
-
-
-
Method Detail
-
statsProvider
public EmbeddedServer.Builder statsProvider(StatsProvider statsProvider)
-
metadataDriver
public EmbeddedServer.Builder metadataDriver(MetadataBookieDriver metadataDriver)
-
registrationManager
public EmbeddedServer.Builder registrationManager(RegistrationManager registrationManager)
-
ledgerManagerFactory
public EmbeddedServer.Builder ledgerManagerFactory(LedgerManagerFactory ledgerManagerFactory)
-
diskChecker
public EmbeddedServer.Builder diskChecker(DiskChecker diskChecker)
-
ledgerDirsManager
public EmbeddedServer.Builder ledgerDirsManager(LedgerDirsManager ledgerDirsManager)
-
indexDirsManager
public EmbeddedServer.Builder indexDirsManager(LedgerDirsManager indexDirsManager)
-
allocator
public EmbeddedServer.Builder allocator(io.netty.buffer.ByteBufAllocator allocator)
-
uncleanShutdownDetection
public EmbeddedServer.Builder uncleanShutdownDetection(UncleanShutdownDetection uncleanShutdownDetection)
-
build
public EmbeddedServer build() throws java.lang.Exception
Build the bookie server.The sequence of the components is:
- stats provider - bookie server - autorecovery daemon - http service
- Returns:
- lifecycle stack
- Throws:
java.lang.Exception
-
-