Uses of Class
org.apache.bookkeeper.client.BKException
-
Packages that use BKException Package Description org.apache.bookkeeper.client BookKeeper Client.org.apache.bookkeeper.replication Classes for replicating Bookkeeper data.org.apache.bookkeeper.server.http Package for bookkeeper http service.org.apache.bookkeeper.streaming A java io stream wrapper over bookkeeper ledgers.org.apache.bookkeeper.tools.cli.commands.autorecovery -
-
Uses of BKException in org.apache.bookkeeper.client
Subclasses of BKException in org.apache.bookkeeper.client Modifier and Type Class Description static classBKException.BKAddEntryQuorumTimeoutExceptionBookkeeper add entry quorum timeout exception.static classBKException.BKBookieExceptionBookkeeper bookie exception.static classBKException.BKBookieHandleNotAvailableExceptionBookkeeper bookie handle not available exception.static classBKException.BKClientClosedExceptionBookkeeper client closed exception.static classBKException.BKDataUnknownExceptionBookkeeper ledger in limbo and data may or may not exist.static classBKException.BKDigestMatchExceptionBookkeeper digest match exception.static classBKException.BKDigestNotInitializedExceptionBookkeeper digest not initialized exception.static classBKException.BKDuplicateEntryIdExceptionBookkeeper duplicate entry id exception.static classBKException.BKIllegalOpExceptionBookkeeper illegal operation exception.static classBKException.BKIncorrectParameterExceptionBookkeeper incorrect parameter exception.static classBKException.BKInterruptedExceptionBookkeeper interrupted exception.static classBKException.BKLedgerClosedExceptionBookkeeper ledger closed exception.static classBKException.BKLedgerExistExceptionBookkeeper ledger exist exception.static classBKException.BKLedgerFencedExceptionBookkeeper ledger fenced exception.static classBKException.BKLedgerIdOverflowExceptionBookkeeper ledger id overflow exception.static classBKException.BKLedgerRecoveryExceptionBookkeeper ledger recovery exception.static classBKException.BKMetadataSerializationExceptionBookkeeper metadata serialization exception.static classBKException.BKMetadataVersionExceptionBookkeeper metadata version exception.static classBKException.BKNoSuchEntryExceptionBookkeeper no such entry exception.static classBKException.BKNoSuchLedgerExistsExceptionBookkeeper no such ledger exists exception.static classBKException.BKNoSuchLedgerExistsOnMetadataServerExceptionBookkeeper no such ledger exists on metadata server exception.static classBKException.BKNotEnoughBookiesExceptionBookkeeper not enough bookies exception.static classBKException.BKProtocolVersionExceptionBookkeeper protocol version exception.static classBKException.BKQuorumExceptionBookkeeper quorum exception.static classBKException.BKReadExceptionBookkeeper read exception.static classBKException.BKReplicationExceptionBookkeeper replication exception.static classBKException.BKSecurityExceptionBookkeeper security exception.static classBKException.BKTimeoutExceptionBookkeeper timeout exception.static classBKException.BKTooManyRequestsExceptionBookkeeper too many requests exception.static classBKException.BKUnauthorizedAccessExceptionBookkeeper unauthorized access exception.static classBKException.BKUnclosedFragmentExceptionBookkeeper unclosed fragment exception.static classBKException.BKUnexpectedConditionExceptionBookkeeper unexpected condition exception.static classBKException.BKWriteExceptionBookkeeper write exception.static classBKException.BKWriteOnReadOnlyBookieExceptionBookkeeper write on readonly bookie exception.static classBKException.MetaStoreExceptionMetastore exception.static classBKException.ZKExceptionZookeeper exception.Fields in org.apache.bookkeeper.client with type parameters of type BKException Modifier and Type Field Description static java.util.function.Function<java.lang.Throwable,BKException>BKException. HANDLERMethods in org.apache.bookkeeper.client that return BKException Modifier and Type Method Description static BKExceptionBKException. create(int code)Create an exception from an error code.Methods in org.apache.bookkeeper.client that throw BKException Modifier and Type Method Description longLedgerHandle. addEntry(byte[] data)Add entry synchronously to an open ledger.longLedgerHandle. addEntry(byte[] data, int offset, int length)Add entry synchronously to an open ledger.longLedgerHandle. addEntry(long entryId, byte[] data)Add entry synchronously to an open ledger.longLedgerHandle. addEntry(long entryId, byte[] data, int offset, int length)Add entry synchronously to an open ledger.longLedgerHandleAdv. addEntry(long entryId, byte[] data)Add entry synchronously to an open ledger.longLedgerHandleAdv. addEntry(long entryId, byte[] data, int offset, int length)Add entry synchronously to an open ledger.longReadOnlyLedgerHandle. addEntry(byte[] data)longReadOnlyLedgerHandle. addEntry(byte[] data, int offset, int length)java.util.Enumeration<LedgerEntry>LedgerHandle. batchReadEntries(long startEntry, int maxCount, long maxSize)Read a sequence of entries synchronously.java.util.Enumeration<LedgerEntry>LedgerHandle. batchReadUnconfirmedEntries(long firstEntry, int maxCount, long maxSize)Read a sequence of entries synchronously, allowing to read after the LastAddConfirmed range.
This is the same ofLedgerHandle.asyncBatchReadUnconfirmedEntries(long, int, long, ReadCallback, Object)BookKeeperBookKeeper.Builder. build()voidBookKeeper. close()Shuts down client.voidBookKeeperAdmin. close()Gracefully release resources that this client uses.voidLedgerHandle. close()Synchronous close the write handle, any adds in flight will return errors.voidReadOnlyLedgerHandle. close()LedgerHandleBookKeeper. createLedger(int ensSize, int writeQuorumSize, int ackQuorumSize, BookKeeper.DigestType digestType, byte[] passwd)Synchronous call to create ledger.LedgerHandleBookKeeper. createLedger(int ensSize, int writeQuorumSize, int ackQuorumSize, BookKeeper.DigestType digestType, byte[] passwd, java.util.Map<java.lang.String,byte[]> customMetadata)Synchronous call to create ledger.LedgerHandleBookKeeper. createLedger(int ensSize, int qSize, BookKeeper.DigestType digestType, byte[] passwd)Synchronous call to create ledger.LedgerHandleBookKeeper. createLedger(BookKeeper.DigestType digestType, byte[] passwd)Creates a new ledger.LedgerHandleBookKeeper. createLedgerAdv(int ensSize, int writeQuorumSize, int ackQuorumSize, BookKeeper.DigestType digestType, byte[] passwd)Synchronous call to create ledger.LedgerHandleBookKeeper. createLedgerAdv(int ensSize, int writeQuorumSize, int ackQuorumSize, BookKeeper.DigestType digestType, byte[] passwd, java.util.Map<java.lang.String,byte[]> customMetadata)Synchronous call to create ledger.LedgerHandleBookKeeper. createLedgerAdv(long ledgerId, int ensSize, int writeQuorumSize, int ackQuorumSize, BookKeeper.DigestType digestType, byte[] passwd, java.util.Map<java.lang.String,byte[]> customMetadata)Synchronously creates a new ledger using the interface which accepts a ledgerId as input.voidBookKeeperAdmin. decommissionBookie(BookieId bookieAddress)Triggers AuditTask by resetting lostBookieRecoveryDelay and then make sure the ledgers stored in the given decommissioning bookie are properly replicated and they are not underreplicated because of the given bookie.voidBookKeeper. deleteLedger(long lId)Synchronous call to delete a ledger.java.util.Set<BookieId>BookieWatcher. getAllBookies()java.util.Set<BookieId>BookieWatcherImpl. getAllBookies()java.util.Collection<BookieId>BookKeeperAdmin. getAllBookies()Get a list of all bookies including the not available ones.java.util.Collection<BookieId>BookKeeperAdmin. getAvailableBookies()Get a list of the available bookies.(package private) java.util.Map<BookieId,BookieInfoReader.BookieInfo>BookieInfoReader. getBookieInfo()java.util.Map<BookieId,BookieInfoReader.BookieInfo>BookKeeper. getBookieInfo()Retrieves BookieInfo from all the bookies in the cluster.java.util.Set<BookieId>BookieWatcher. getBookies()java.util.Set<BookieId>BookieWatcherImpl. getBookies()BookieServiceInfoBookKeeperAdmin. getBookieServiceInfo(BookieId bookiedId)java.util.SortedMap<java.lang.Long,LedgerMetadata>BookKeeperAdmin. getLedgersContainBookies(java.util.Set<BookieId> bookies)java.util.Set<BookieId>BookieWatcher. getReadOnlyBookies()java.util.Set<BookieId>BookieWatcherImpl. getReadOnlyBookies()java.util.Collection<BookieId>BookKeeperAdmin. getReadOnlyBookies()Get a list of readonly bookies synchronously.voidBookieWatcherImpl. initialBlockingBookieRead()Blocks until bookies are read from zookeeper, used in theBookKeeperconstructor.booleanBookKeeper. isClosed(long lId)Check whether the ledger with identifier lId has been closed.static BookKeeperAdminBookKeeperAdmin. newBookKeeperAdmin(ClientConfiguration conf)LedgerHandleBookKeeper. openLedger(long lId, BookKeeper.DigestType digestType, byte[] passwd)Synchronous open ledger call.LedgerHandleBookKeeperAdmin. openLedger(long lId)Open a ledger as an administrator.LedgerHandleBookKeeper. openLedgerNoRecovery(long lId, BookKeeper.DigestType digestType, byte[] passwd)Synchronous, unsafe open ledger call.LedgerHandleBookKeeperAdmin. openLedgerNoRecovery(long lId)Open a ledger as an administrator without recovering the ledger.java.lang.Iterable<LedgerEntry>BookKeeperAdmin. readEntries(long ledgerId, long firstEntry, long lastEntry)Read entries from a ledger synchronously.java.util.Enumeration<LedgerEntry>LedgerHandle. readEntries(long firstEntry, long lastEntry)Read a sequence of entries synchronously.longLedgerHandle. readExplicitLastConfirmed()longLedgerHandle. readLastConfirmed()Obtains synchronously the last confirmed write from a quorum of bookies.LedgerEntryLedgerHandle. readLastEntry()java.util.Enumeration<LedgerEntry>LedgerHandle. readUnconfirmedEntries(long firstEntry, long lastEntry)Read a sequence of entries synchronously, allowing to read after the LastAddConfirmed range.
This is the same ofLedgerHandle.asyncReadUnconfirmedEntries(long, long, ReadCallback, Object)voidBookKeeperAdmin. recoverBookieData(long lid, java.util.Set<BookieId> bookiesSrc, boolean dryrun, boolean skipOpenLedgers)voidBookKeeperAdmin. recoverBookieData(java.util.Set<BookieId> bookiesSrc)voidBookKeeperAdmin. recoverBookieData(java.util.Set<BookieId> bookiesSrc, boolean dryrun, boolean skipOpenLedgers)voidBookKeeperAdmin. recoverBookieData(java.util.Set<BookieId> bookiesSrc, boolean dryrun, boolean skipOpenLedgers, boolean skipUnrecoverableLedgers)voidBookKeeperAdmin. recoverBookieData(BookieId bookieSrc)Synchronous method to rebuild and recover the ledger fragments data that was stored on the source bookie.voidBookKeeperAdmin. replicateLedgerFragment(LedgerHandle lh, LedgerFragment ledgerFragment, java.util.function.BiConsumer<java.lang.Long,java.lang.Long> onReadEntryFailureCallback)Replicate the Ledger fragment to target Bookie passed.longLedgerHandle. tryReadLastConfirmed()Obtains synchronously the last confirmed write from a quorum of bookies.static <T> TSyncCallbackUtils. waitForResult(java.util.concurrent.CompletableFuture<T> future)Wait for a result.voidBookKeeperAdmin. watchReadOnlyBookiesChanged(RegistrationClient.RegistrationListener listener)Notify when the available list of read only bookies changes.voidBookKeeperAdmin. watchWritableBookiesChanged(RegistrationClient.RegistrationListener listener)Notify when the available list of bookies changes.Constructors in org.apache.bookkeeper.client that throw BKException Constructor Description BookKeeper(java.lang.String servers)Create a bookkeeper client.BookKeeper(ClientConfiguration conf)Create a bookkeeper client using a configuration object.BookKeeper(ClientConfiguration conf, org.apache.zookeeper.ZooKeeper zk)Create a bookkeeper client but use the passed in zookeeper client instead of instantiating one.BookKeeper(ClientConfiguration conf, org.apache.zookeeper.ZooKeeper zk, io.netty.channel.EventLoopGroup eventLoopGroup)Create a bookkeeper client but use the passed in zookeeper client and client event loop group instead of instantiating those.BookKeeper(ClientConfiguration conf, org.apache.zookeeper.ZooKeeper zkc, io.netty.channel.EventLoopGroup eventLoopGroup, io.netty.buffer.ByteBufAllocator byteBufAllocator, StatsLogger rootStatsLogger, DNSToSwitchMapping dnsResolver, io.netty.util.HashedWheelTimer requestTimer, FeatureProvider featureProvider)Constructor for use with the builder.BookKeeperAdmin(java.lang.String zkServers)Constructor that takes in a ZooKeeper servers connect string so we know how to connect to ZooKeeper to retrieve information about the BookKeeper cluster.BookKeeperAdmin(ClientConfiguration conf)Constructor that takes in a configuration object so we know how to connect to ZooKeeper to retrieve information about the BookKeeper cluster.LedgerEntriesIterator(long ledgerId, long firstEntry, long lastEntry) -
Uses of BKException in org.apache.bookkeeper.replication
Methods in org.apache.bookkeeper.replication that throw BKException Modifier and Type Method Description (package private) voidAuditorBookieCheckTask. auditBookies()(package private) voidAuditorCheckAllLedgersTask. checkAllLedgers()List all the ledgers and check them individually.protected java.util.List<java.lang.String>Auditor. getAvailableBookies()protected java.util.List<java.lang.String>AuditorTask. getAvailableBookies() -
Uses of BKException in org.apache.bookkeeper.server.http
Methods in org.apache.bookkeeper.server.http that throw BKException Modifier and Type Method Description BKHttpServiceProviderBKHttpServiceProvider.Builder. build() -
Uses of BKException in org.apache.bookkeeper.streaming
Constructors in org.apache.bookkeeper.streaming that throw BKException Constructor Description LedgerInputStream(LedgerHandle lh)construct a outputstream from a ledger handle.LedgerInputStream(LedgerHandle lh, int size)construct a outputstream from a ledger handle. -
Uses of BKException in org.apache.bookkeeper.tools.cli.commands.autorecovery
Methods in org.apache.bookkeeper.tools.cli.commands.autorecovery that throw BKException Modifier and Type Method Description booleanLostBookieRecoveryDelayCommand. handler(ServerConfiguration conf, LostBookieRecoveryDelayCommand.LBRDFlags flags)
-