Package org.apache.bookkeeper.server
Class EmbeddedServer
- java.lang.Object
-
- org.apache.bookkeeper.server.EmbeddedServer
-
public class EmbeddedServer extends java.lang.Object
An embedded server is a server that run bookie and serving rpc requests.It is a rewritten server using
LifecycleComponent
, replacing the legacy serverBookieServer
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EmbeddedServer.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EmbeddedServer.Builder
builder(BookieConfiguration conf)
Create a new builder from given configuration.AutoRecoveryService
getAutoRecoveryService()
BookieService
getBookieService()
DataIntegrityService
getDataIntegrityService()
DiskChecker
getDiskChecker()
HttpService
getHttpService()
LedgerDirsManager
getIndexDirsManager()
LedgerDirsManager
getLedgerDirsManager()
LedgerManagerFactory
getLedgerManagerFactory()
LifecycleComponentStack
getLifecycleComponentStack()
RegistrationManager
getRegistrationManager()
StatsProvider
getStatsProvider()
-
-
-
Method Detail
-
getLifecycleComponentStack
public LifecycleComponentStack getLifecycleComponentStack()
-
getStatsProvider
public StatsProvider getStatsProvider()
-
getRegistrationManager
public RegistrationManager getRegistrationManager()
-
getLedgerManagerFactory
public LedgerManagerFactory getLedgerManagerFactory()
-
getDiskChecker
public DiskChecker getDiskChecker()
-
getLedgerDirsManager
public LedgerDirsManager getLedgerDirsManager()
-
getIndexDirsManager
public LedgerDirsManager getIndexDirsManager()
-
getBookieService
public BookieService getBookieService()
-
getAutoRecoveryService
public AutoRecoveryService getAutoRecoveryService()
-
getDataIntegrityService
public DataIntegrityService getDataIntegrityService()
-
getHttpService
public HttpService getHttpService()
-
builder
public static final EmbeddedServer.Builder builder(BookieConfiguration conf)
Create a new builder from given configuration. Actual services implementations can be provided to the builder and will override ones defined in the configuration.Invoker is responsible to start and stop provided services implementations, components from
getLifecycleComponentStack()
will reflect only those created from provided configuration.- Parameters:
conf
- bookie configuration- Returns:
- a new embedded server builder
-
-