MetaStore.MetaStoreCallback<T>, MetaStore.UpdateLedgersIdsCallback| Constructor and Description |
|---|
MetaStoreImpl(MetadataStore store,
org.apache.bookkeeper.common.util.OrderedExecutor executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
asyncGetCursorInfo(String ledgerName,
String cursorName,
MetaStore.MetaStoreCallback<MLDataFormats.ManagedCursorInfo> callback)
Get the ledger id associated with a cursor.
|
void |
asyncRemoveCursor(String ledgerName,
String cursorName,
MetaStore.MetaStoreCallback<Void> callback)
Drop the persistent state of a consumer from the metadata store.
|
void |
asyncUpdateCursorInfo(String ledgerName,
String cursorName,
MLDataFormats.ManagedCursorInfo info,
Stat stat,
MetaStore.MetaStoreCallback<Void> callback)
Update the persisted position of a cursor.
|
void |
asyncUpdateLedgerIds(String ledgerName,
MLDataFormats.ManagedLedgerInfo mlInfo,
Stat stat,
MetaStore.MetaStoreCallback<Void> callback) |
void |
getCursors(String ledgerName,
MetaStore.MetaStoreCallback<List<String>> callback)
Get the list of cursors registered on a ManagedLedger.
|
void |
getManagedLedgerInfo(String ledgerName,
boolean createIfMissing,
MetaStore.MetaStoreCallback<MLDataFormats.ManagedLedgerInfo> callback)
Get the metadata used by the ManagedLedger.
|
Iterable<String> |
getManagedLedgers()
Get a list of all the managed ledgers in the system.
|
void |
removeManagedLedger(String ledgerName,
MetaStore.MetaStoreCallback<Void> callback)
Drop the persistent state for the ManagedLedger and all its associated consumers.
|
public MetaStoreImpl(MetadataStore store, org.apache.bookkeeper.common.util.OrderedExecutor executor)
public void getManagedLedgerInfo(String ledgerName, boolean createIfMissing, MetaStore.MetaStoreCallback<MLDataFormats.ManagedLedgerInfo> callback)
MetaStoregetManagedLedgerInfo in interface MetaStoreledgerName - the name of the ManagedLedgercreateIfMissing - whether the managed ledger metadata should be created if it doesn't exist alreadypublic void asyncUpdateLedgerIds(String ledgerName, MLDataFormats.ManagedLedgerInfo mlInfo, Stat stat, MetaStore.MetaStoreCallback<Void> callback)
asyncUpdateLedgerIds in interface MetaStoreledgerName - the name of the ManagedLedgermlInfo - managed ledger infostat - version object associated with current statecallback - callback objectpublic void getCursors(String ledgerName, MetaStore.MetaStoreCallback<List<String>> callback)
MetaStoregetCursors in interface MetaStoreledgerName - the name of the ManagedLedgerpublic void asyncGetCursorInfo(String ledgerName, String cursorName, MetaStore.MetaStoreCallback<MLDataFormats.ManagedCursorInfo> callback)
MetaStoreasyncGetCursorInfo in interface MetaStorepublic void asyncUpdateCursorInfo(String ledgerName, String cursorName, MLDataFormats.ManagedCursorInfo info, Stat stat, MetaStore.MetaStoreCallback<Void> callback)
MetaStoreasyncUpdateCursorInfo in interface MetaStoreledgerName - the name of the ManagedLedgercallback - the callbackpublic void asyncRemoveCursor(String ledgerName, String cursorName, MetaStore.MetaStoreCallback<Void> callback)
MetaStoreasyncRemoveCursor in interface MetaStoreledgerName - the name of the ManagedLedgercursorName - the cursor namecallback - callback objectpublic void removeManagedLedger(String ledgerName, MetaStore.MetaStoreCallback<Void> callback)
MetaStoreremoveManagedLedger in interface MetaStoreledgerName - the name of the ManagedLedgercallback - callback objectpublic Iterable<String> getManagedLedgers() throws ManagedLedgerException.MetaStoreException
MetaStoregetManagedLedgers in interface MetaStoreManagedLedgerException.MetaStoreExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.