Class BookKeeperTestClient

  • All Implemented Interfaces:
    AutoCloseable, org.apache.bookkeeper.client.api.BookKeeper

    public class BookKeeperTestClient
    extends org.apache.bookkeeper.client.BookKeeper
    Test BookKeeperClient which allows access to members we don't wish to expose in the public API.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.bookkeeper.client.BookKeeper

        org.apache.bookkeeper.client.BookKeeper.Builder, org.apache.bookkeeper.client.BookKeeper.DigestType
    • Constructor Summary

      Constructors 
      Constructor Description
      BookKeeperTestClient​(org.apache.bookkeeper.conf.ClientConfiguration conf)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.bookkeeper.conf.ClientConfiguration getConf()  
      org.apache.zookeeper.ZooKeeper getZkHandle()  
      void readBookiesBlocking()
      Force a read to zookeeper to get list of bookies.
      • Methods inherited from class org.apache.bookkeeper.client.BookKeeper

        asyncCreateLedger, asyncCreateLedger, asyncCreateLedgerAdv, asyncCreateLedgerAdv, asyncDeleteLedger, asyncIsClosed, asyncOpenLedger, asyncOpenLedgerNoRecovery, close, createLedger, createLedger, createLedger, createLedger, createLedgerAdv, createLedgerAdv, createLedgerAdv, deleteLedger, forConfig, getBookieAddressResolver, getBookieInfo, getLedgerManager, getLedgerManagerFactory, getLedgerMetadata, getMainWorkerPool, getMetadataClientDriver, isClosed, newCreateLedgerOp, newDeleteLedgerOp, newListLedgersOp, newOpenLedgerOp, openLedger, openLedgerNoRecovery
    • Method Detail

      • getZkHandle

        public org.apache.zookeeper.ZooKeeper getZkHandle()
      • getConf

        public org.apache.bookkeeper.conf.ClientConfiguration getConf()
        Overrides:
        getConf in class org.apache.bookkeeper.client.BookKeeper
      • readBookiesBlocking

        public void readBookiesBlocking()
                                 throws InterruptedException,
                                        org.apache.bookkeeper.client.BKException
        Force a read to zookeeper to get list of bookies.
        Throws:
        InterruptedException
        org.apache.zookeeper.KeeperException
        org.apache.bookkeeper.client.BKException