Package org.apache.pulsar.metadata.api
Class MetadataStoreFactory
java.lang.Object
org.apache.pulsar.metadata.api.MetadataStoreFactory
Factory class for
MetadataStore.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MetadataStorecreate(String metadataURL, MetadataStoreConfig metadataStoreConfig) Create a newMetadataStoreinstance based on the given configuration.static booleanisBasedOnZookeeper(String metadataURL)
-
Constructor Details
-
MetadataStoreFactory
public MetadataStoreFactory()
-
-
Method Details
-
create
public static MetadataStore create(String metadataURL, MetadataStoreConfig metadataStoreConfig) throws MetadataStoreException Create a newMetadataStoreinstance based on the given configuration.- Parameters:
metadataURL- the metadataStore URLmetadataStoreConfig- the configuration object- Returns:
- a new
MetadataStoreinstance - Throws:
IOException- if the metadata store initialization failsMetadataStoreException
-
isBasedOnZookeeper
-