Package org.apache.pulsar.metadata.impl
Class MetadataStoreFactoryImpl
java.lang.Object
org.apache.pulsar.metadata.impl.MetadataStoreFactoryImpl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MetadataStorecreate(String metadataURL, MetadataStoreConfig metadataStoreConfig) static MetadataStoreExtendedcreateExtended(String metadataURL, MetadataStoreConfig metadataStoreConfig) static booleanisBasedOnZookeeper(String metadataURL) static StringremoveIdentifierFromMetadataURL(String metadataURL) Removes the identifier from the full metadata url.
-
Field Details
-
METADATASTORE_PROVIDERS_PROPERTY
- See Also:
-
-
Constructor Details
-
MetadataStoreFactoryImpl
public MetadataStoreFactoryImpl()
-
-
Method Details
-
create
public static MetadataStore create(String metadataURL, MetadataStoreConfig metadataStoreConfig) throws MetadataStoreException - Throws:
MetadataStoreException
-
createExtended
public static MetadataStoreExtended createExtended(String metadataURL, MetadataStoreConfig metadataStoreConfig) throws MetadataStoreException - Throws:
MetadataStoreException
-
removeIdentifierFromMetadataURL
Removes the identifier from the full metadata url. zk:my-zk:3000 -> my-zk:3000 etcd:my-etcd:3000 -> my-etcd:3000 my-default-zk:3000 -> my-default-zk:3000- Parameters:
metadataURL-- Returns:
-
isBasedOnZookeeper
-