Interface ClusterData.Builder
- Enclosing interface:
ClusterData
public static interface ClusterData.Builder
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationParameters(String authenticationParameters) authenticationPlugin(String authenticationPlugin) brokerClientCertificateFilePath(String certificateFilePath) brokerClientKeyFilePath(String keyFilePath) brokerClientSslFactoryPlugin(String sslFactoryPlugin) Deprecated.since 5.0.0: the PIP-337 SSL factory plugin is removed (PIP-478).brokerClientSslFactoryPluginParams(String sslFactoryPluginParams) Deprecated.since 5.0.0: the PIP-337 SSL factory plugin is removed (PIP-478).brokerClientTlsEnabled(boolean enabled) brokerClientTlsEnabledWithKeyStore(boolean enabled) brokerClientTlsFactoryClassName(String tlsFactoryClassName) Select thePulsarTlsFactoryused for outbound connections to this cluster (PIP-478) — the binary-protocol replication client and the cross-cluster admin (HTTPS) client, the two legs whose configuration is built from this cluster entry (seeClusterData.getBrokerClientTlsFactoryClassName()for the leg it does not reach).brokerClientTlsFactoryConfig(String tlsFactoryConfig) Configuration passed tobrokerClientTlsFactoryClassName(String)as its init params (a JSON object or akey=valuelist).brokerClientTlsKeyStore(String keyStore) brokerClientTlsKeyStorePassword(String keyStorePassword) brokerClientTlsKeyStoreType(String keyStoreType) brokerClientTlsTrustStore(String tlsTrustStore) brokerClientTlsTrustStorePassword(String trustStorePassword) brokerClientTlsTrustStoreType(String trustStoreType) brokerClientTrustCertsFilePath(String trustCertsFilePath) brokerServiceUrl(String brokerServiceUrl) brokerServiceUrlTls(String brokerServiceUrlTls) build()listenerName(String listenerName) peerClusterNames(LinkedHashSet<String> peerClusterNames) proxyProtocol(org.apache.pulsar.client.api.ProxyProtocol proxyProtocol) proxyServiceUrl(String proxyServiceUrl) serviceUrl(String serviceUrl) serviceUrlTls(String serviceUrlTls) tlsAllowInsecureConnection(boolean enabled)
-
Method Details
-
serviceUrl
-
serviceUrlTls
-
brokerServiceUrl
-
brokerServiceUrlTls
-
proxyServiceUrl
-
proxyProtocol
-
authenticationPlugin
-
authenticationParameters
-
peerClusterNames
-
brokerClientTlsEnabled
-
tlsAllowInsecureConnection
-
brokerClientTlsEnabledWithKeyStore
-
brokerClientTlsTrustStoreType
-
brokerClientTlsTrustStore
-
brokerClientTlsTrustStorePassword
-
brokerClientTrustCertsFilePath
-
brokerClientCertificateFilePath
-
brokerClientKeyFilePath
-
brokerClientTlsKeyStoreType
-
brokerClientTlsKeyStorePassword
-
brokerClientTlsKeyStore
-
listenerName
-
brokerClientTlsFactoryClassName
Select thePulsarTlsFactoryused for outbound connections to this cluster (PIP-478) — the binary-protocol replication client and the cross-cluster admin (HTTPS) client, the two legs whose configuration is built from this cluster entry (seeClusterData.getBrokerClientTlsFactoryClassName()for the leg it does not reach). Leave blank to inherit the broker-levelbrokerClientTlsFactoryClassName.- Parameters:
tlsFactoryClassName- the factory class name, or blank to inherit the broker-level setting- Returns:
- this builder
-
brokerClientTlsFactoryConfig
Configuration passed tobrokerClientTlsFactoryClassName(String)as its init params (a JSON object or akey=valuelist).It follows the class name rather than inheriting on its own: setting a class name here means this configuration is used even when blank, so one factory's parameters are never handed to another. It is ignored — with a warning — when no class name is set on this cluster.
- Parameters:
tlsFactoryConfig- the factory configuration for this cluster's factory- Returns:
- this builder
-
brokerClientSslFactoryPlugin
Deprecated.since 5.0.0: the PIP-337 SSL factory plugin is removed (PIP-478). Setting it writes a metadata field retained only for compatibility; the value is ignored (with a WARN). UsebrokerClientTlsFactoryClassName(String)instead. -
brokerClientSslFactoryPluginParams
Deprecated.since 5.0.0: the PIP-337 SSL factory plugin is removed (PIP-478). Retained for metadata compatibility but ignored. UsebrokerClientTlsFactoryConfig(String)instead. -
build
ClusterData build()
-