public interface MetaStore
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MetaStore.MetaStoreCallback<T> |
static interface |
MetaStore.UpdateLedgersIdsCallback |
| 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.
|
void getManagedLedgerInfo(String ledgerName, boolean createIfMissing, MetaStore.MetaStoreCallback<MLDataFormats.ManagedLedgerInfo> callback)
ledgerName - the name of the ManagedLedgercreateIfMissing - whether the managed ledger metadata should be created if it doesn't exist alreadyManagedLedgerException.MetaStoreExceptionvoid asyncUpdateLedgerIds(String ledgerName, MLDataFormats.ManagedLedgerInfo mlInfo, Stat stat, MetaStore.MetaStoreCallback<Void> callback)
ledgerName - the name of the ManagedLedgermlInfo - managed ledger infostat - version object associated with current statecallback - callback objectvoid getCursors(String ledgerName, MetaStore.MetaStoreCallback<List<String>> callback)
ledgerName - the name of the ManagedLedgervoid asyncGetCursorInfo(String ledgerName, String cursorName, MetaStore.MetaStoreCallback<MLDataFormats.ManagedCursorInfo> callback)
ledgerName - cursorName - callback - void asyncUpdateCursorInfo(String ledgerName, String cursorName, MLDataFormats.ManagedCursorInfo info, Stat stat, MetaStore.MetaStoreCallback<Void> callback)
ledgerName - the name of the ManagedLedgercursorName - info - stat - callback - the callbackManagedLedgerException.MetaStoreExceptionvoid asyncRemoveCursor(String ledgerName, String cursorName, MetaStore.MetaStoreCallback<Void> callback)
ledgerName - the name of the ManagedLedgercursorName - the cursor namecallback - callback objectvoid removeManagedLedger(String ledgerName, MetaStore.MetaStoreCallback<Void> callback)
ledgerName - the name of the ManagedLedgercallback - callback objectIterable<String> getManagedLedgers() throws ManagedLedgerException.MetaStoreException
ManagedLedgerException.MetaStoreExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.