Package org.apache.pulsar.metadata.impl
Class EtcdMetadataStore
java.lang.Object
org.apache.pulsar.metadata.impl.AbstractMetadataStore
org.apache.pulsar.metadata.impl.batching.AbstractBatchedMetadataStore
org.apache.pulsar.metadata.impl.EtcdMetadataStore
- All Implemented Interfaces:
AutoCloseable,Consumer<Notification>,MetadataStoreExtended,MetadataStore
-
Field Summary
Fields inherited from class org.apache.pulsar.metadata.impl.AbstractMetadataStore
executor -
Constructor Summary
ConstructorsConstructorDescriptionEtcdMetadataStore(String metadataURL, MetadataStoreConfig conf, boolean enableSessionWatcher) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbatchOperation(List<MetadataOp> ops) voidclose()protected CompletableFuture<Boolean>existsFromStore(String path) protected voidreceivedSessionEvent(SessionEvent event) protected CompletableFuture<Stat>storePut(String path, byte[] data, Optional<Long> optExpectedVersion, EnumSet<CreateOption> options) Methods inherited from class org.apache.pulsar.metadata.impl.batching.AbstractBatchedMetadataStore
getChildrenFromStore, getMetadataEventSynchronizer, storeDelete, storeGetMethods 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, 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
-
Constructor Details
-
EtcdMetadataStore
public EtcdMetadataStore(String metadataURL, MetadataStoreConfig conf, boolean enableSessionWatcher) throws MetadataStoreException - Throws:
MetadataStoreException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classAbstractBatchedMetadataStore- Throws:
Exception
-
existsFromStore
- Specified by:
existsFromStorein classAbstractMetadataStore
-
storePut
protected CompletableFuture<Stat> storePut(String path, byte[] data, Optional<Long> optExpectedVersion, EnumSet<CreateOption> options) - Overrides:
storePutin classAbstractBatchedMetadataStore
-
batchOperation
- Specified by:
batchOperationin classAbstractBatchedMetadataStore
-
receivedSessionEvent
- Overrides:
receivedSessionEventin classAbstractMetadataStore
-