Package org.apache.pulsar
Class PulsarClusterMetadataSetup
java.lang.Object
org.apache.pulsar.PulsarClusterMetadataSetup
Setup the metadata for a new Pulsar cluster.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateNamespaceIfAbsent(PulsarResources resources, org.apache.pulsar.common.naming.NamespaceName namespaceName, String cluster) static voidcreateNamespaceIfAbsent(PulsarResources resources, org.apache.pulsar.common.naming.NamespaceName namespaceName, String cluster, int bundleNumber) static voidcreateTenantIfAbsent(PulsarResources resources, String tenant, String cluster) static org.apache.pulsar.metadata.api.extended.MetadataStoreExtendedinitConfigMetadataStore(String connection, int sessionTimeout) static org.apache.pulsar.metadata.api.extended.MetadataStoreExtendedinitConfigMetadataStore(String connection, String configPath, int sessionTimeout) static org.apache.pulsar.metadata.api.extended.MetadataStoreExtendedinitLocalMetadataStore(String connection, int sessionTimeout) static org.apache.pulsar.metadata.api.extended.MetadataStoreExtendedinitLocalMetadataStore(String connection, String configPath, int sessionTimeout) static void
-
Constructor Details
-
PulsarClusterMetadataSetup
public PulsarClusterMetadataSetup()
-
-
Method Details
-
main
- Throws:
Exception
-
createTenantIfAbsent
public static void createTenantIfAbsent(PulsarResources resources, String tenant, String cluster) throws IOException, InterruptedException, ExecutionException -
createNamespaceIfAbsent
public static void createNamespaceIfAbsent(PulsarResources resources, org.apache.pulsar.common.naming.NamespaceName namespaceName, String cluster, int bundleNumber) throws IOException - Throws:
IOException
-
createNamespaceIfAbsent
public static void createNamespaceIfAbsent(PulsarResources resources, org.apache.pulsar.common.naming.NamespaceName namespaceName, String cluster) throws IOException - Throws:
IOException
-
initLocalMetadataStore
public static org.apache.pulsar.metadata.api.extended.MetadataStoreExtended initLocalMetadataStore(String connection, int sessionTimeout) throws Exception - Throws:
Exception
-
initLocalMetadataStore
public static org.apache.pulsar.metadata.api.extended.MetadataStoreExtended initLocalMetadataStore(String connection, String configPath, int sessionTimeout) throws Exception - Throws:
Exception
-
initConfigMetadataStore
public static org.apache.pulsar.metadata.api.extended.MetadataStoreExtended initConfigMetadataStore(String connection, int sessionTimeout) throws Exception - Throws:
Exception
-
initConfigMetadataStore
public static org.apache.pulsar.metadata.api.extended.MetadataStoreExtended initConfigMetadataStore(String connection, String configPath, int sessionTimeout) throws Exception - Throws:
Exception
-