Uses of Class
org.apache.bookkeeper.mledger.ManagedLedgerException
Packages that use ManagedLedgerException
Package
Description
-
Uses of ManagedLedgerException in org.apache.bookkeeper.mledger
Subclasses of ManagedLedgerException in org.apache.bookkeeper.mledgerModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classMethods in org.apache.bookkeeper.mledger that return ManagedLedgerExceptionModifier and TypeMethodDescriptionstatic ManagedLedgerExceptionManagedLedgerException.getManagedLedgerException(Throwable e) Methods in org.apache.bookkeeper.mledger with parameters of type ManagedLedgerExceptionModifier and TypeMethodDescriptionvoidAsyncCallbacks.AddEntryCallback.addFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.ClearBacklogCallback.clearBacklogFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.CloseCallback.closeFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.DeleteCursorCallback.deleteCursorFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.DeleteCallback.deleteFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.DeleteLedgerCallback.deleteLedgerFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.FindEntryCallback.findEntryFailed(ManagedLedgerException exception, Optional<Position> failedReadPosition, Object ctx) voidAsyncCallbacks.ManagedLedgerInfoCallback.getInfoFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.MarkDeleteCallback.markDeleteFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.OffloadCallback.offloadFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.OpenCursorCallback.openCursorFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.OpenLedgerCallback.openLedgerFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.OpenReadOnlyCursorCallback.openReadOnlyCursorFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.OpenReadOnlyManagedLedgerCallback.openReadOnlyManagedLedgerFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.ReadEntriesCallback.readEntriesFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.ReadEntryCallback.readEntryFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.ResetCursorCallback.resetFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.ScanCallback.scanFailed(ManagedLedgerException exception, Optional<Position> failedReadPosition, Object ctx) voidAsyncCallbacks.SkipEntriesCallback.skipEntriesFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.TerminateCallback.terminateFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.UpdatePropertiesCallback.updatePropertiesFailed(ManagedLedgerException exception, Object ctx) Methods in org.apache.bookkeeper.mledger that throw ManagedLedgerExceptionModifier and TypeMethodDescriptionManagedLedger.addEntry(byte[] data) Append a new entry to the end of a managed ledger.ManagedLedger.addEntry(byte[] data, int numberOfMessages) Append a new entry to the end of a managed ledger.ManagedLedger.addEntry(byte[] data, int offset, int length) Append a new entry to the end of a managed ledger.ManagedLedger.addEntry(byte[] data, int numberOfMessages, int offset, int length) Append a new entry to the end of a managed ledger.voidManagedCursor.clearBacklog()Clear the cursor backlog.voidManagedCursor.close()Close the cursor and releases the associated resources.voidManagedLedger.close()Close the ManagedLedger.voidReadOnlyCursor.close()Close the cursor and releases the associated resources.voidDelete a group of entries.voidDelete a single message.voidManagedLedger.delete()Delete the ManagedLedger.voidDelete a managed ledger.voidManagedLedgerFactory.delete(String name, CompletableFuture<ManagedLedgerConfig> mlConfigFuture) Delete a managed ledger.voidManagedLedger.deleteCursor(String name) Remove a ManagedCursor from this ManagedLedger.voidManagedLedger.deleteProperty(String key) Delete the property by key.ManagedCursor.findNewestMatching(Predicate<Entry> condition) Find the newest entry that matches the given predicate.ManagedCursor.findNewestMatching(ManagedCursor.FindPositionConstraint constraint, Predicate<Entry> condition) Find the newest entry that matches the given predicate.ReadOnlyCursor.findNewestMatching(ManagedCursor.FindPositionConstraint constraint, Predicate<Entry> condition) Find the newest entry that matches the given predicate.ManagedLedgerFactory.getManagedLedgerInfo(String name) Get the current metadata info for a managed ledger.ManagedCursor.getNthEntry(int n, ManagedCursor.IndividualDeletedEntries deletedEntries) Get 'N'th entry from the mark delete position in the cursor without updating any cursor positions.voidManagedCursor.markDelete(Position position) This signals that the reader is done with all the entries up to "position" (included).voidManagedCursor.markDelete(Position position, Map<String, Long> properties) This signals that the reader is done with all the entries up to "position" (included).ManagedLedger.newNonDurableCursor(Position startCursorPosition) Creates a new cursor whose metadata is not backed by durable storage.ManagedLedger.newNonDurableCursor(Position startPosition, String subscriptionName) ManagedLedger.newNonDurableCursor(Position startPosition, String subscriptionName, CommandSubscribe.InitialPosition initialPosition, boolean isReadCompacted) ManagedLedger.offloadPrefix(Position pos) Offload as many entries before position as possible to longterm storage.Open a managed ledger.ManagedLedgerFactory.open(String name, ManagedLedgerConfig config) Open a managed ledger.ManagedLedger.openCursor(String name) Open a ManagedCursor in this ManagedLedger.ManagedLedger.openCursor(String name, CommandSubscribe.InitialPosition initialPosition) Open a ManagedCursor in this ManagedLedger.ManagedLedger.openCursor(String name, CommandSubscribe.InitialPosition initialPosition, Map<String, Long> properties, Map<String, String> cursorProperties) Open a ManagedCursor in this ManagedLedger.ManagedLedgerFactory.openReadOnlyCursor(String managedLedgerName, Position startPosition, ManagedLedgerConfig config) Open aReadOnlyCursorpositioned to the earliest entry for the specified managed ledger.ManagedCursor.readEntries(int numberOfEntriesToRead) Read entries from the ManagedLedger, up to the specified number.ReadOnlyCursor.readEntries(int numberOfEntriesToRead) Read entries from the ManagedLedger, up to the specified number.ManagedCursor.readEntriesOrWait(int numberOfEntriesToRead) Read entries from the ManagedLedger, up to the specified number.ManagedCursor.readEntriesOrWait(int maxEntries, long maxSizeBytes) Read entries from the ManagedLedger, up to the specified number and size.ManagedCursor.replayEntries(Set<? extends Position> positions) Read the specified set of positions from ManagedLedger.voidManagedCursor.resetCursor(Position position) reset the cursor to specified position to enable replay of messages.default voidLedgerOffloader.scanLedgers(OffloadedLedgerMetadataConsumer consumer, Map<String, String> offloadDriverMetadata) Scans all the ManagedLedgers stored on this Offloader (usually a Bucket).voidManagedLedger.setProperties(Map<String, String> properties) Update managed-ledger's properties.voidManagedLedger.setProperty(String key, String value) Add key-value to propertiesMap.voidManagedLedgerFactory.shutdown()Releases all the resources maintained by the ManagedLedgerFactory.ManagedLedgerFactory.shutdownAsync()This method tries it's best to releases all the resources maintained by the ManagedLedgerFactory.voidManagedCursor.skipEntries(int numEntriesToSkip, ManagedCursor.IndividualDeletedEntries deletedEntries) Skip n entries from the read position of this cursor.ManagedLedger.terminate()Terminate the managed ledger and return the last committed entry. -
Uses of ManagedLedgerException in org.apache.bookkeeper.mledger.impl
Methods in org.apache.bookkeeper.mledger.impl that return ManagedLedgerExceptionModifier and TypeMethodDescriptionstatic ManagedLedgerExceptionManagedLedgerImpl.createManagedLedgerException(int bkErrorCode) static ManagedLedgerExceptionManagedLedgerImpl.createManagedLedgerException(Throwable t) Methods in org.apache.bookkeeper.mledger.impl with parameters of type ManagedLedgerExceptionModifier and TypeMethodDescriptionvoidOpAddEntry.failed(ManagedLedgerException e) voidManagedCursorImpl.VoidCallback.operationFailed(ManagedLedgerException exception) Methods in org.apache.bookkeeper.mledger.impl that throw ManagedLedgerExceptionModifier and TypeMethodDescriptionManagedLedgerImpl.addEntry(byte[] data) ManagedLedgerImpl.addEntry(byte[] data, int numberOfMessages) ManagedLedgerImpl.addEntry(byte[] data, int offset, int length) ManagedLedgerImpl.addEntry(byte[] data, int numberOfMessages, int offset, int length) voidManagedCursorImpl.clearBacklog()voidManagedCursorImpl.close()voidManagedLedgerImpl.close()voidvoidvoidvoidManagedLedgerFactoryImpl.delete(String name, CompletableFuture<ManagedLedgerConfig> mlConfigFuture) voidManagedLedgerImpl.delete()Delete this ManagedLedger completely from the system.voidManagedLedgerImpl.deleteCursor(String name) voidManagedLedgerImpl.deleteProperty(String key) ManagedCursorImpl.duplicateNonDurableCursor(String nonDurableCursorName) Create a non-durable cursor and copy the ack stats.ManagedCursorImpl.findNewestMatching(Predicate<Entry> condition) ManagedCursorImpl.findNewestMatching(ManagedCursor.FindPositionConstraint constraint, Predicate<Entry> condition) ManagedLedgerFactoryImpl.getManagedLedgerInfo(String name) ManagedCursorImpl.getNthEntry(int n, ManagedCursor.IndividualDeletedEntries deletedEntries) voidManagedCursorImpl.markDelete(Position position) voidManagedCursorImpl.markDelete(Position position, Map<String, Long> properties) ManagedLedgerImpl.newNonDurableCursor(Position startCursorPosition) ManagedLedgerImpl.newNonDurableCursor(Position startPosition, String subscriptionName) ManagedLedgerImpl.newNonDurableCursor(Position startCursorPosition, String cursorName, CommandSubscribe.InitialPosition initialPosition, boolean isReadCompacted) ManagedLedgerImpl.offloadPrefix(Position pos) ManagedLedgerFactoryImpl.open(String name, ManagedLedgerConfig config) ManagedLedgerImpl.openCursor(String cursorName) ManagedLedgerImpl.openCursor(String cursorName, CommandSubscribe.InitialPosition initialPosition) ManagedLedgerImpl.openCursor(String cursorName, CommandSubscribe.InitialPosition initialPosition, Map<String, Long> properties, Map<String, String> cursorProperties) ManagedLedgerFactoryImpl.openReadOnlyCursor(String managedLedgerName, Position startPosition, ManagedLedgerConfig config) ManagedCursorImpl.readEntries(int numberOfEntriesToRead) ManagedCursorImpl.readEntriesOrWait(int numberOfEntriesToRead) ManagedCursorImpl.readEntriesOrWait(int numberOfEntriesToRead, long maxSizeBytes) ManagedCursorImpl.replayEntries(Set<? extends Position> positions) voidManagedCursorImpl.resetCursor(Position newPos) voidManagedLedgerImpl.setProperties(Map<String, String> properties) voidManagedLedgerImpl.setProperty(String key, String value) voidManagedLedgerFactoryImpl.shutdown()ManagedLedgerFactoryImpl.shutdownAsync()voidManagedCursorImpl.skipEntries(int numEntriesToSkip, ManagedCursor.IndividualDeletedEntries deletedEntries) ManagedLedgerImpl.terminate() -
Uses of ManagedLedgerException in org.apache.bookkeeper.mledger.util
Methods in org.apache.bookkeeper.mledger.util with parameters of type ManagedLedgerExceptionModifier and TypeMethodDescriptionvoidFutures.CloseFuture.closeFailed(ManagedLedgerException exception, Object ctx)