类 MetaStoreImpl
java.lang.Object
org.apache.bookkeeper.mledger.impl.MetaStoreImpl
- 所有已实现的接口:
MetaStore
-
嵌套类概要
从接口继承的嵌套类/接口 org.apache.bookkeeper.mledger.impl.MetaStore
MetaStore.MetaStoreCallback<T>, MetaStore.UpdateLedgersIdsCallback -
构造器概要
构造器构造器说明MetaStoreImpl(org.apache.pulsar.metadata.api.MetadataStore store, org.apache.bookkeeper.common.util.OrderedExecutor executor) MetaStoreImpl(org.apache.pulsar.metadata.api.MetadataStore store, org.apache.bookkeeper.common.util.OrderedExecutor executor, String ledgerInfoCompressionType, String cursorInfoCompressionType) -
方法概要
修饰符和类型方法说明asyncExists(String path) Check ledger exists.voidasyncGetCursorInfo(String ledgerName, String cursorName, MetaStore.MetaStoreCallback<MLDataFormats.ManagedCursorInfo> callback) Get the ledger id associated with a cursor.voidasyncRemoveCursor(String ledgerName, String cursorName, MetaStore.MetaStoreCallback<Void> callback) Drop the persistent state of a consumer from the metadata store.voidasyncUpdateCursorInfo(String ledgerName, String cursorName, MLDataFormats.ManagedCursorInfo info, org.apache.pulsar.metadata.api.Stat stat, MetaStore.MetaStoreCallback<Void> callback) Update the persisted position of a cursor.voidasyncUpdateLedgerIds(String ledgerName, MLDataFormats.ManagedLedgerInfo mlInfo, org.apache.pulsar.metadata.api.Stat stat, MetaStore.MetaStoreCallback<Void> callback) byte[]compressCursorInfo(MLDataFormats.ManagedCursorInfo managedCursorInfo) byte[]compressLedgerInfo(MLDataFormats.ManagedLedgerInfo managedLedgerInfo) voidgetCursors(String ledgerName, MetaStore.MetaStoreCallback<List<String>> callback) Get the list of cursors registered on a ManagedLedger.voidgetManagedLedgerInfo(String ledgerName, boolean createIfMissing, Map<String, String> properties, MetaStore.MetaStoreCallback<MLDataFormats.ManagedLedgerInfo> callback) Get the metadata used by the ManagedLedger.Get a list of all the managed ledgers in the system.parseManagedCursorInfo(byte[] data) parseManagedLedgerInfo(byte[] data) voidremoveManagedLedger(String ledgerName, MetaStore.MetaStoreCallback<Void> callback) Drop the persistent state for the ManagedLedger and all its associated consumers.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.bookkeeper.mledger.impl.MetaStore
getManagedLedgerInfo
-
构造器详细资料
-
MetaStoreImpl
public MetaStoreImpl(org.apache.pulsar.metadata.api.MetadataStore store, org.apache.bookkeeper.common.util.OrderedExecutor executor) -
MetaStoreImpl
-
-
方法详细资料
-
getManagedLedgerInfo
public void getManagedLedgerInfo(String ledgerName, boolean createIfMissing, Map<String, String> properties, MetaStore.MetaStoreCallback<MLDataFormats.ManagedLedgerInfo> callback) 从接口复制的说明:MetaStoreGet the metadata used by the ManagedLedger.- 指定者:
getManagedLedgerInfo在接口中MetaStore- 参数:
ledgerName- the name of the ManagedLedgercreateIfMissing- whether the managed ledger metadata should be created if it doesn't exist alreadyproperties- ledger properties
-
asyncUpdateLedgerIds
public void asyncUpdateLedgerIds(String ledgerName, MLDataFormats.ManagedLedgerInfo mlInfo, org.apache.pulsar.metadata.api.Stat stat, MetaStore.MetaStoreCallback<Void> callback) - 指定者:
asyncUpdateLedgerIds在接口中MetaStore- 参数:
ledgerName- the name of the ManagedLedgermlInfo- managed ledger infostat- version object associated with current statecallback- callback object
-
getCursors
从接口复制的说明:MetaStoreGet the list of cursors registered on a ManagedLedger.- 指定者:
getCursors在接口中MetaStore- 参数:
ledgerName- the name of the ManagedLedger
-
asyncGetCursorInfo
public void asyncGetCursorInfo(String ledgerName, String cursorName, MetaStore.MetaStoreCallback<MLDataFormats.ManagedCursorInfo> callback) 从接口复制的说明:MetaStoreGet the ledger id associated with a cursor. This ledger id will contains the mark-deleted position for the cursor.- 指定者:
asyncGetCursorInfo在接口中MetaStore
-
asyncUpdateCursorInfo
public void asyncUpdateCursorInfo(String ledgerName, String cursorName, MLDataFormats.ManagedCursorInfo info, org.apache.pulsar.metadata.api.Stat stat, MetaStore.MetaStoreCallback<Void> callback) 从接口复制的说明:MetaStoreUpdate the persisted position of a cursor.- 指定者:
asyncUpdateCursorInfo在接口中MetaStore- 参数:
ledgerName- the name of the ManagedLedgercallback- the callback
-
asyncRemoveCursor
public void asyncRemoveCursor(String ledgerName, String cursorName, MetaStore.MetaStoreCallback<Void> callback) 从接口复制的说明:MetaStoreDrop the persistent state of a consumer from the metadata store.- 指定者:
asyncRemoveCursor在接口中MetaStore- 参数:
ledgerName- the name of the ManagedLedgercursorName- the cursor namecallback- callback object
-
removeManagedLedger
从接口复制的说明:MetaStoreDrop the persistent state for the ManagedLedger and all its associated consumers.- 指定者:
removeManagedLedger在接口中MetaStore- 参数:
ledgerName- the name of the ManagedLedgercallback- callback object
-
getManagedLedgers
从接口复制的说明:MetaStoreGet a list of all the managed ledgers in the system.- 指定者:
getManagedLedgers在接口中MetaStore- 返回:
- an Iterable of the names of the managed ledgers
- 抛出:
ManagedLedgerException.MetaStoreException
-
asyncExists
从接口复制的说明:MetaStoreCheck ledger exists.- 指定者:
asyncExists在接口中MetaStore- 参数:
path-String- 返回:
- a future represents the result of the operation.
an instance of
Booleanis returned if the operation succeeds.
-
compressLedgerInfo
-
compressCursorInfo
-
parseManagedLedgerInfo
public MLDataFormats.ManagedLedgerInfo parseManagedLedgerInfo(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseManagedCursorInfo
public MLDataFormats.ManagedCursorInfo parseManagedCursorInfo(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - 抛出:
com.google.protobuf.InvalidProtocolBufferException
-