Class BookKeeperTestClient

  • All Implemented Interfaces:
    java.lang.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BookKeeperTestClient

        public BookKeeperTestClient​(org.apache.bookkeeper.conf.ClientConfiguration conf)
                             throws java.io.IOException,
                                    java.lang.InterruptedException,
                                    org.apache.bookkeeper.client.BKException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
        org.apache.bookkeeper.client.BKException
    • 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 java.lang.InterruptedException,
                                        org.apache.bookkeeper.client.BKException
        Force a read to zookeeper to get list of bookies.
        Throws:
        java.lang.InterruptedException
        org.apache.zookeeper.KeeperException
        org.apache.bookkeeper.client.BKException