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
-
Method Details
-
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()
-