Package org.apache.bookkeeper.client
Class BookKeeperTestClient
- java.lang.Object
-
- org.apache.bookkeeper.client.BookKeeper
-
- org.apache.bookkeeper.client.BookKeeperTestClient
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.apache.bookkeeper.client.api.BookKeeper
public class BookKeeperTestClient extends org.apache.bookkeeper.client.BookKeeperTest BookKeeperClient which allows access to members we don't wish to expose in the public API.
-
-
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.ClientConfigurationgetConf()org.apache.zookeeper.ZooKeepergetZkHandle()voidreadBookiesBlocking()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
-
-
-
-
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.IOExceptionjava.lang.InterruptedExceptionorg.apache.bookkeeper.client.BKException
-
-
Method Detail
-
getZkHandle
public org.apache.zookeeper.ZooKeeper getZkHandle()
-
getConf
public org.apache.bookkeeper.conf.ClientConfiguration getConf()
- Overrides:
getConfin classorg.apache.bookkeeper.client.BookKeeper
-
readBookiesBlocking
public void readBookiesBlocking() throws java.lang.InterruptedException, org.apache.bookkeeper.client.BKExceptionForce a read to zookeeper to get list of bookies.- Throws:
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionorg.apache.bookkeeper.client.BKException
-
-