Package org.apache.pulsar.sql.presto
Class PulsarConnectorConfig
java.lang.Object
org.apache.pulsar.sql.presto.PulsarConnectorConfig
- All Implemented Interfaces:
AutoCloseable
This object handles configuration of the Pulsar connector for the Presto engine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intintintintboolean@NotNull Stringlongintintint@javax.validation.constraints.NotNull intint@javax.validation.constraints.NotNull int@javax.validation.constraints.NotNull int@javax.validation.constraints.NotNull longbooleanorg.apache.pulsar.common.policies.data.OffloadPoliciesImpl@NotNull org.apache.pulsar.client.admin.PulsarAdmin@NotNull String@javax.validation.constraints.NotNull int@NotNull StringsetAuthParams(String authParams) setAuthPlugin(String authPluginClassName) setBookkeeperExplicitInterval(int bookkeeperExplicitInterval) setBookkeeperNumIOThreads(int bookkeeperNumIOThreads) setBookkeeperNumWorkerThreads(int bookkeeperNumWorkerThreads) setBookkeeperThrottleValue(int bookkeeperThrottleValue) setBookkeeperUseV2Protocol(boolean bookkeeperUseV2Protocol) setBrokerServiceUrl(String brokerServiceUrl) setManagedLedgerCacheSizeMB(int managedLedgerCacheSizeMB) setManagedLedgerNumSchedulerThreads(int managedLedgerNumSchedulerThreads) setManagedLedgerNumWorkerThreads(int managedLedgerNumWorkerThreads) setManagedLedgerOffloadDriver(String managedLedgerOffloadDriver) setManagedLedgerOffloadMaxThreads(int managedLedgerOffloadMaxThreads) setMaxEntryReadBatchSize(int batchSize) setMaxMessageSize(int maxMessageSize) setMaxSplitEntryQueueSize(int maxSplitEntryQueueSize) setMaxSplitMessageQueueSize(int maxSplitMessageQueueSize) setMaxSplitQueueSizeBytes(long maxSplitQueueSizeBytes) setNamespaceDelimiterRewriteEnable(boolean namespaceDelimiterRewriteEnable) setNarExtractionDirectory(String narExtractionDirectory) setOffloaderProperties(String offloaderProperties) setOffloadersDirectory(String offloadersDirectory) setRewriteNamespaceDelimiter(String rewriteNamespaceDelimiter) setStatsProvider(String statsProvider) setStatsProviderConfigs(String statsProviderConfigs) setTargetNumSplits(int targetNumSplits) setTlsAllowInsecureConnection(boolean tlsAllowInsecureConnection) setTlsHostnameVerificationEnable(boolean tlsHostnameVerificationEnable) setTlsTrustCertsFilePath(String tlsTrustCertsFilePath) setWebServiceUrl(String webServiceUrl) setZookeeperUri(String zookeeperUri) toString()
-
Constructor Details
-
PulsarConnectorConfig
public PulsarConnectorConfig()
-
-
Method Details
-
getBrokerServiceUrl
-
setBrokerServiceUrl
@Config("pulsar.broker-service-url") public PulsarConnectorConfig setBrokerServiceUrl(String brokerServiceUrl) -
setWebServiceUrl
@Config("pulsar.web-service-url") public PulsarConnectorConfig setWebServiceUrl(String webServiceUrl) -
getWebServiceUrl
-
setMaxMessageSize
@Config("pulsar.max-message-size") public PulsarConnectorConfig setMaxMessageSize(int maxMessageSize) -
getMaxMessageSize
public int getMaxMessageSize() -
getZookeeperUri
-
setZookeeperUri
-
getMaxEntryReadBatchSize
@NotNull public @javax.validation.constraints.NotNull int getMaxEntryReadBatchSize() -
setMaxEntryReadBatchSize
@Config("pulsar.max-entry-read-batch-size") public PulsarConnectorConfig setMaxEntryReadBatchSize(int batchSize) -
getTargetNumSplits
@NotNull public @javax.validation.constraints.NotNull int getTargetNumSplits() -
setTargetNumSplits
@Config("pulsar.target-num-splits") public PulsarConnectorConfig setTargetNumSplits(int targetNumSplits) -
getMaxSplitMessageQueueSize
@NotNull public @javax.validation.constraints.NotNull int getMaxSplitMessageQueueSize() -
setMaxSplitMessageQueueSize
@Config("pulsar.max-split-message-queue-size") public PulsarConnectorConfig setMaxSplitMessageQueueSize(int maxSplitMessageQueueSize) -
getMaxSplitEntryQueueSize
@NotNull public @javax.validation.constraints.NotNull int getMaxSplitEntryQueueSize() -
setMaxSplitEntryQueueSize
@Config("pulsar.max-split-entry-queue-size") public PulsarConnectorConfig setMaxSplitEntryQueueSize(int maxSplitEntryQueueSize) -
getMaxSplitQueueSizeBytes
@NotNull public @javax.validation.constraints.NotNull long getMaxSplitQueueSizeBytes() -
setMaxSplitQueueSizeBytes
@Config("pulsar.max-split-queue-cache-size") public PulsarConnectorConfig setMaxSplitQueueSizeBytes(long maxSplitQueueSizeBytes) -
getStatsProvider
-
setStatsProvider
@Config("pulsar.stats-provider") public PulsarConnectorConfig setStatsProvider(String statsProvider) -
getStatsProviderConfigs
-
setStatsProviderConfigs
@Config("pulsar.stats-provider-configs") public PulsarConnectorConfig setStatsProviderConfigs(String statsProviderConfigs) throws IOException - Throws:
IOException
-
getRewriteNamespaceDelimiter
-
setRewriteNamespaceDelimiter
@Config("pulsar.rewrite-namespace-delimiter") public PulsarConnectorConfig setRewriteNamespaceDelimiter(String rewriteNamespaceDelimiter) -
getNamespaceDelimiterRewriteEnable
public boolean getNamespaceDelimiterRewriteEnable() -
setNamespaceDelimiterRewriteEnable
@Config("pulsar.namespace-delimiter-rewrite-enable") public PulsarConnectorConfig setNamespaceDelimiterRewriteEnable(boolean namespaceDelimiterRewriteEnable) -
getManagedLedgerOffloadMaxThreads
public int getManagedLedgerOffloadMaxThreads() -
setManagedLedgerOffloadMaxThreads
@Config("pulsar.managed-ledger-offload-max-threads") public PulsarConnectorConfig setManagedLedgerOffloadMaxThreads(int managedLedgerOffloadMaxThreads) throws IOException - Throws:
IOException
-
getManagedLedgerOffloadDriver
-
setManagedLedgerOffloadDriver
@Config("pulsar.managed-ledger-offload-driver") public PulsarConnectorConfig setManagedLedgerOffloadDriver(String managedLedgerOffloadDriver) throws IOException - Throws:
IOException
-
getOffloadersDirectory
-
setOffloadersDirectory
@Config("pulsar.offloaders-directory") public PulsarConnectorConfig setOffloadersDirectory(String offloadersDirectory) throws IOException - Throws:
IOException
-
getOffloaderProperties
-
setOffloaderProperties
@Config("pulsar.offloader-properties") public PulsarConnectorConfig setOffloaderProperties(String offloaderProperties) throws IOException - Throws:
IOException
-
getAuthPlugin
-
setAuthPlugin
@Config("pulsar.auth-plugin") public PulsarConnectorConfig setAuthPlugin(String authPluginClassName) throws IOException - Throws:
IOException
-
getAuthParams
-
setAuthParams
@Config("pulsar.auth-params") public PulsarConnectorConfig setAuthParams(String authParams) throws IOException - Throws:
IOException
-
isTlsAllowInsecureConnection
-
setTlsAllowInsecureConnection
@Config("pulsar.tls-allow-insecure-connection") public PulsarConnectorConfig setTlsAllowInsecureConnection(boolean tlsAllowInsecureConnection) -
isTlsHostnameVerificationEnable
-
setTlsHostnameVerificationEnable
@Config("pulsar.tls-hostname-verification-enable") public PulsarConnectorConfig setTlsHostnameVerificationEnable(boolean tlsHostnameVerificationEnable) -
getTlsTrustCertsFilePath
-
setTlsTrustCertsFilePath
@Config("pulsar.tls-trust-cert-file-path") public PulsarConnectorConfig setTlsTrustCertsFilePath(String tlsTrustCertsFilePath) -
getBookkeeperThrottleValue
public int getBookkeeperThrottleValue() -
setBookkeeperThrottleValue
@Config("pulsar.bookkeeper-throttle-value") public PulsarConnectorConfig setBookkeeperThrottleValue(int bookkeeperThrottleValue) -
getBookkeeperNumIOThreads
public int getBookkeeperNumIOThreads() -
setBookkeeperNumIOThreads
@Config("pulsar.bookkeeper-num-io-threads") public PulsarConnectorConfig setBookkeeperNumIOThreads(int bookkeeperNumIOThreads) -
getBookkeeperNumWorkerThreads
public int getBookkeeperNumWorkerThreads() -
setBookkeeperNumWorkerThreads
@Config("pulsar.bookkeeper-num-worker-threads") public PulsarConnectorConfig setBookkeeperNumWorkerThreads(int bookkeeperNumWorkerThreads) -
getBookkeeperUseV2Protocol
public boolean getBookkeeperUseV2Protocol() -
setBookkeeperUseV2Protocol
@Config("pulsar.bookkeeper-use-v2-protocol") public PulsarConnectorConfig setBookkeeperUseV2Protocol(boolean bookkeeperUseV2Protocol) -
getBookkeeperExplicitInterval
public int getBookkeeperExplicitInterval() -
setBookkeeperExplicitInterval
@Config("pulsar.bookkeeper-explicit-interval") public PulsarConnectorConfig setBookkeeperExplicitInterval(int bookkeeperExplicitInterval) -
getManagedLedgerCacheSizeMB
public long getManagedLedgerCacheSizeMB() -
setManagedLedgerCacheSizeMB
@Config("pulsar.managed-ledger-cache-size-MB") public PulsarConnectorConfig setManagedLedgerCacheSizeMB(int managedLedgerCacheSizeMB) -
getManagedLedgerNumWorkerThreads
public int getManagedLedgerNumWorkerThreads() -
setManagedLedgerNumWorkerThreads
@Config("pulsar.managed-ledger-num-worker-threads") public PulsarConnectorConfig setManagedLedgerNumWorkerThreads(int managedLedgerNumWorkerThreads) -
getManagedLedgerNumSchedulerThreads
public int getManagedLedgerNumSchedulerThreads() -
setManagedLedgerNumSchedulerThreads
@Config("pulsar.managed-ledger-num-scheduler-threads") public PulsarConnectorConfig setManagedLedgerNumSchedulerThreads(int managedLedgerNumSchedulerThreads) -
getNarExtractionDirectory
-
setNarExtractionDirectory
@Config("pulsar.nar-extraction-directory") public PulsarConnectorConfig setNarExtractionDirectory(String narExtractionDirectory) -
getPulsarAdmin
@NotNull public @NotNull org.apache.pulsar.client.admin.PulsarAdmin getPulsarAdmin() throws org.apache.pulsar.client.api.PulsarClientException- Throws:
org.apache.pulsar.client.api.PulsarClientException
-
getOffloadPolices
public org.apache.pulsar.common.policies.data.OffloadPoliciesImpl getOffloadPolices() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
toString
-