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:
java.lang.AutoCloseable,java.util.function.Consumer<Notification>,MetadataStoreExtended,MetadataStore
public class EtcdMetadataStore extends AbstractBatchedMetadataStore
-
-
Field Summary
-
Fields inherited from class org.apache.pulsar.metadata.impl.AbstractMetadataStore
executor
-
-
Constructor Summary
Constructors Constructor Description EtcdMetadataStore(java.lang.String metadataURL, MetadataStoreConfig conf, boolean enableSessionWatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbatchOperation(java.util.List<MetadataOp> ops)voidclose()protected java.util.concurrent.CompletableFuture<java.lang.Boolean>existsFromStore(java.lang.String path)protected voidreceivedSessionEvent(SessionEvent event)protected java.util.concurrent.CompletableFuture<Stat>storePut(java.lang.String path, byte[] data, java.util.Optional<java.lang.Long> optExpectedVersion, java.util.EnumSet<CreateOption> options)-
Methods inherited from class org.apache.pulsar.metadata.impl.batching.AbstractBatchedMetadataStore
getChildrenFromStore, storeDelete, storeGet
-
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, receivedNotification, registerListener, registerSessionListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pulsar.metadata.api.MetadataStore
getDefaultMetadataCacheConfig, getMetadataCache, getMetadataCache, getMetadataCache
-
-
-
-
Constructor Detail
-
EtcdMetadataStore
public EtcdMetadataStore(java.lang.String metadataURL, MetadataStoreConfig conf, boolean enableSessionWatcher) throws MetadataStoreException- Throws:
MetadataStoreException
-
-
Method Detail
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Overrides:
closein classAbstractBatchedMetadataStore- Throws:
java.lang.Exception
-
existsFromStore
protected java.util.concurrent.CompletableFuture<java.lang.Boolean> existsFromStore(java.lang.String path)
- Specified by:
existsFromStorein classAbstractMetadataStore
-
storePut
protected java.util.concurrent.CompletableFuture<Stat> storePut(java.lang.String path, byte[] data, java.util.Optional<java.lang.Long> optExpectedVersion, java.util.EnumSet<CreateOption> options)
- Overrides:
storePutin classAbstractBatchedMetadataStore
-
batchOperation
protected void batchOperation(java.util.List<MetadataOp> ops)
- Specified by:
batchOperationin classAbstractBatchedMetadataStore
-
receivedSessionEvent
protected void receivedSessionEvent(SessionEvent event)
- Overrides:
receivedSessionEventin classAbstractMetadataStore
-
-