Package org.apache.pulsar.metadata.impl
Class LocalMemoryMetadataStore
java.lang.Object
org.apache.pulsar.metadata.impl.AbstractMetadataStore
org.apache.pulsar.metadata.impl.LocalMemoryMetadataStore
- All Implemented Interfaces:
AutoCloseable,Consumer<Notification>,MetadataStoreExtended,MetadataStore
public class LocalMemoryMetadataStore
extends AbstractMetadataStore
implements MetadataStoreExtended
-
Field Summary
Fields inherited from class org.apache.pulsar.metadata.impl.AbstractMetadataStore
executor, isClosed, metadataStoreNameFields inherited from interface org.apache.pulsar.metadata.api.MetadataStore
LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionLocalMemoryMetadataStore(String metadataURL, MetadataStoreConfig metadataStoreConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()existsFromStore(String path) getChildrenFromStore(String path) GetMetadataEventSynchronizerto notify and synchronize metadata events.storeDelete(String path, Optional<Long> optExpectedVersion) storePut(String path, byte[] data, Optional<Long> optExpectedVersion, EnumSet<CreateOption> options) voidupdateMetadataEventSynchronizer(MetadataEventSynchronizer synchronizer) Methods inherited from class org.apache.pulsar.metadata.impl.AbstractMetadataStore
accept, alreadyClosedFailedFuture, delete, deleteRecursive, execute, execute, exists, get, getChildren, getMetadataCache, getMetadataCache, getMetadataCache, handleMetadataEvent, invalidateAll, invalidateCaches, isClosed, notifyParentChildrenChanged, parent, put, put, putInternal, receivedNotification, receivedSessionEvent, registerListener, registerSessionListener, registerSyncListener, 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
delete, deleteIfExists, deleteRecursive, exists, get, getChildren, getDefaultMetadataCacheConfig, getMetadataCache, getMetadataCache, getMetadataCache, getMetadataCache, getMetadataCache, getMetadataCache, put, registerListener, syncMethods inherited from interface org.apache.pulsar.metadata.api.extended.MetadataStoreExtended
handleMetadataEvent, put, registerSessionListener
-
Constructor Details
-
LocalMemoryMetadataStore
public LocalMemoryMetadataStore(String metadataURL, MetadataStoreConfig metadataStoreConfig) throws MetadataStoreException - Throws:
MetadataStoreException
-
-
Method Details
-
storeGet
- Specified by:
storeGetin classAbstractMetadataStore
-
getChildrenFromStore
- Specified by:
getChildrenFromStorein classAbstractMetadataStore
-
existsFromStore
- Specified by:
existsFromStorein classAbstractMetadataStore
-
storePut
public CompletableFuture<Stat> storePut(String path, byte[] data, Optional<Long> optExpectedVersion, EnumSet<CreateOption> options) - Specified by:
storePutin classAbstractMetadataStore
-
storeDelete
- Specified by:
storeDeletein classAbstractMetadataStore
-
getMetadataEventSynchronizer
Description copied from interface:MetadataStoreExtendedGetMetadataEventSynchronizerto notify and synchronize metadata events.- Specified by:
getMetadataEventSynchronizerin interfaceMetadataStoreExtended- Returns:
-
updateMetadataEventSynchronizer
- Specified by:
updateMetadataEventSynchronizerin interfaceMetadataStoreExtended
-
close
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classAbstractMetadataStore- Throws:
Exception
-