Package org.apache.pulsar.metadata.impl
Class RocksdbMetadataStore
java.lang.Object
org.apache.pulsar.metadata.impl.AbstractMetadataStore
org.apache.pulsar.metadata.impl.RocksdbMetadataStore
- All Implemented Interfaces:
AutoCloseable,Consumer<Notification>,MetadataStoreExtended,MetadataStore
-
Field Summary
Fields inherited from class org.apache.pulsar.metadata.impl.AbstractMetadataStore
executor -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected CompletableFuture<Boolean>existsFromStore(String path) static RocksdbMetadataStoreget(String metadataStoreUri, MetadataStoreConfig conf) protected CompletableFuture<List<String>>getChildrenFromStore(String path) GetMetadataEventSynchronizerto notify and synchronize metadata events.protected CompletableFuture<Void>storeDelete(String path, Optional<Long> expectedVersion) protected CompletableFuture<Stat>Methods inherited from class org.apache.pulsar.metadata.impl.AbstractMetadataStore
accept, delete, deleteRecursive, execute, exists, get, getChildren, getMetadataCache, getMetadataCache, getMetadataCache, invalidateAll, notifyParentChildrenChanged, parent, put, put, putInternal, receivedNotification, receivedSessionEvent, registerListener, registerSessionListener, registerSyncLister, shouldIgnoreEventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.metadata.api.MetadataStore
getDefaultMetadataCacheConfig, getMetadataCache, getMetadataCache, getMetadataCache
-
Method Details
-
get
public static RocksdbMetadataStore get(String metadataStoreUri, MetadataStoreConfig conf) throws MetadataStoreException - Throws:
MetadataStoreException
-
close
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classAbstractMetadataStore- Throws:
MetadataStoreException
-
storeGet
- Specified by:
storeGetin classAbstractMetadataStore
-
getChildrenFromStore
- Specified by:
getChildrenFromStorein classAbstractMetadataStore
-
existsFromStore
- Specified by:
existsFromStorein classAbstractMetadataStore
-
storeDelete
- Specified by:
storeDeletein classAbstractMetadataStore
-
storePut
protected CompletableFuture<Stat> storePut(String path, byte[] data, Optional<Long> expectedVersion, EnumSet<CreateOption> options) - Specified by:
storePutin classAbstractMetadataStore
-
getMetadataEventSynchronizer
Description copied from interface:MetadataStoreExtendedGetMetadataEventSynchronizerto notify and synchronize metadata events.- Returns:
-