Package org.apache.bookkeeper.client
Interface ClientContext
-
public interface ClientContext
Collection of client objects used by LedgerHandle to interact with the outside world. Normally these are instantiated by the BookKeeper object but they are present to the LedgerHandle through this interface to allow tests to easily inject mocked versions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BookieClient
getBookieClient()
BookieWatcher
getBookieWatcher()
io.netty.buffer.ByteBufAllocator
getByteBufAllocator()
BookKeeperClientStats
getClientStats()
ClientInternalConf
getConf()
LedgerManager
getLedgerManager()
OrderedExecutor
getMainWorkerPool()
EnsemblePlacementPolicy
getPlacementPolicy()
OrderedScheduler
getScheduler()
boolean
isClientClosed()
-
-
-
Method Detail
-
getConf
ClientInternalConf getConf()
-
getLedgerManager
LedgerManager getLedgerManager()
-
getBookieWatcher
BookieWatcher getBookieWatcher()
-
getPlacementPolicy
EnsemblePlacementPolicy getPlacementPolicy()
-
getBookieClient
BookieClient getBookieClient()
-
getByteBufAllocator
io.netty.buffer.ByteBufAllocator getByteBufAllocator()
-
getMainWorkerPool
OrderedExecutor getMainWorkerPool()
-
getScheduler
OrderedScheduler getScheduler()
-
getClientStats
BookKeeperClientStats getClientStats()
-
isClientClosed
boolean isClientClosed()
-
-