Package org.apache.pulsar.metadata.api
Interface MetadataStoreLifecycle
- All Known Implementing Classes:
ZKMetadataStore
public interface MetadataStoreLifecycle
Extension of the
MetadataStore interface that supports lifecycle operation methods which might not
be supported by all implementations.-
Method Summary
Modifier and TypeMethodDescriptionInitialize the metadata store cluster if needed.
-
Method Details
-
initializeCluster
CompletableFuture<Void> initializeCluster()Initialize the metadata store cluster if needed. For example, if the backend metadata store is a zookeeper cluster and the pulsar cluster is configured to access the zookeeper cluster in the chroot mode, then this method could be used to initialize the root node during pulsar cluster metadata setup.- Returns:
- a future to track the async request.
-