Class BKHttpServiceProvider.Builder
- java.lang.Object
-
- org.apache.bookkeeper.server.http.BKHttpServiceProvider.Builder
-
- Enclosing class:
- BKHttpServiceProvider
public static class BKHttpServiceProvider.Builder extends java.lang.Object
Builder for HttpServiceProvider.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) AutoRecoveryMain
autoRecovery
(package private) BookieServer
bookieServer
(package private) LedgerManagerFactory
ledgerManagerFactory
(package private) ServerConfiguration
serverConf
(package private) StatsProvider
statsProvider
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BKHttpServiceProvider
build()
BKHttpServiceProvider.Builder
setAutoRecovery(AutoRecoveryMain autoRecovery)
BKHttpServiceProvider.Builder
setBookieServer(BookieServer bookieServer)
BKHttpServiceProvider.Builder
setLedgerManagerFactory(LedgerManagerFactory ledgerManagerFactory)
BKHttpServiceProvider.Builder
setServerConfiguration(ServerConfiguration conf)
BKHttpServiceProvider.Builder
setStatsProvider(StatsProvider statsProvider)
-
-
-
Field Detail
-
bookieServer
BookieServer bookieServer
-
autoRecovery
AutoRecoveryMain autoRecovery
-
ledgerManagerFactory
LedgerManagerFactory ledgerManagerFactory
-
serverConf
ServerConfiguration serverConf
-
statsProvider
StatsProvider statsProvider
-
-
Method Detail
-
setBookieServer
public BKHttpServiceProvider.Builder setBookieServer(BookieServer bookieServer)
-
setAutoRecovery
public BKHttpServiceProvider.Builder setAutoRecovery(AutoRecoveryMain autoRecovery)
-
setServerConfiguration
public BKHttpServiceProvider.Builder setServerConfiguration(ServerConfiguration conf)
-
setStatsProvider
public BKHttpServiceProvider.Builder setStatsProvider(StatsProvider statsProvider)
-
setLedgerManagerFactory
public BKHttpServiceProvider.Builder setLedgerManagerFactory(LedgerManagerFactory ledgerManagerFactory)
-
build
public BKHttpServiceProvider build() throws java.io.IOException, org.apache.zookeeper.KeeperException, java.lang.InterruptedException, BKException
- Throws:
java.io.IOException
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
BKException
-
-