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 org.apache.bookkeeper.proto.BookieClient
getBookieClient()
BookieWatcher
getBookieWatcher()
io.netty.buffer.ByteBufAllocator
getByteBufAllocator()
BookKeeperClientStats
getClientStats()
ClientInternalConf
getConf()
org.apache.bookkeeper.meta.LedgerManager
getLedgerManager()
org.apache.bookkeeper.common.util.OrderedExecutor
getMainWorkerPool()
EnsemblePlacementPolicy
getPlacementPolicy()
org.apache.bookkeeper.common.util.OrderedScheduler
getScheduler()
boolean
isClientClosed()
-
-
-
Method Detail
-
getConf
ClientInternalConf getConf()
-
getLedgerManager
org.apache.bookkeeper.meta.LedgerManager getLedgerManager()
-
getBookieWatcher
BookieWatcher getBookieWatcher()
-
getPlacementPolicy
EnsemblePlacementPolicy getPlacementPolicy()
-
getBookieClient
org.apache.bookkeeper.proto.BookieClient getBookieClient()
-
getByteBufAllocator
io.netty.buffer.ByteBufAllocator getByteBufAllocator()
-
getMainWorkerPool
org.apache.bookkeeper.common.util.OrderedExecutor getMainWorkerPool()
-
getScheduler
org.apache.bookkeeper.common.util.OrderedScheduler getScheduler()
-
getClientStats
BookKeeperClientStats getClientStats()
-
isClientClosed
boolean isClientClosed()
-
-