Package org.apache.pulsar.sql.presto
Class PulsarConnectorConfig
- java.lang.Object
-
- org.apache.pulsar.sql.presto.PulsarConnectorConfig
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class PulsarConnectorConfig extends java.lang.Object implements java.lang.AutoCloseableThis object handles configuration of the Pulsar connector for the Presto engine.
-
-
Constructor Summary
Constructors Constructor Description PulsarConnectorConfig()
-
Method Summary
-
-
-
Method Detail
-
getBrokerServiceUrl
@NotNull public @NotNull java.lang.String getBrokerServiceUrl()
-
setBrokerServiceUrl
@Config("pulsar.broker-service-url") public PulsarConnectorConfig setBrokerServiceUrl(java.lang.String brokerServiceUrl)
-
setWebServiceUrl
@Config("pulsar.web-service-url") public PulsarConnectorConfig setWebServiceUrl(java.lang.String webServiceUrl)
-
getWebServiceUrl
public java.lang.String getWebServiceUrl()
-
setMaxMessageSize
@Config("pulsar.max-message-size") public PulsarConnectorConfig setMaxMessageSize(int maxMessageSize)
-
getMaxMessageSize
public int getMaxMessageSize()
-
getZookeeperUri
@NotNull public @NotNull java.lang.String getZookeeperUri()
-
setZookeeperUri
@Config("pulsar.zookeeper-uri") public PulsarConnectorConfig setZookeeperUri(java.lang.String zookeeperUri)
-
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
@NotNull public @NotNull java.lang.String getStatsProvider()
-
setStatsProvider
@Config("pulsar.stats-provider") public PulsarConnectorConfig setStatsProvider(java.lang.String statsProvider)
-
getStatsProviderConfigs
@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.String> getStatsProviderConfigs()
-
setStatsProviderConfigs
@Config("pulsar.stats-provider-configs") public PulsarConnectorConfig setStatsProviderConfigs(java.lang.String statsProviderConfigs) throws java.io.IOException- Throws:
java.io.IOException
-
getRewriteNamespaceDelimiter
public java.lang.String getRewriteNamespaceDelimiter()
-
setRewriteNamespaceDelimiter
@Config("pulsar.rewrite-namespace-delimiter") public PulsarConnectorConfig setRewriteNamespaceDelimiter(java.lang.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 java.io.IOException- Throws:
java.io.IOException
-
getManagedLedgerOffloadDriver
public java.lang.String getManagedLedgerOffloadDriver()
-
setManagedLedgerOffloadDriver
@Config("pulsar.managed-ledger-offload-driver") public PulsarConnectorConfig setManagedLedgerOffloadDriver(java.lang.String managedLedgerOffloadDriver) throws java.io.IOException- Throws:
java.io.IOException
-
getOffloadersDirectory
public java.lang.String getOffloadersDirectory()
-
setOffloadersDirectory
@Config("pulsar.offloaders-directory") public PulsarConnectorConfig setOffloadersDirectory(java.lang.String offloadersDirectory) throws java.io.IOException- Throws:
java.io.IOException
-
getOffloaderProperties
public java.util.Map<java.lang.String,java.lang.String> getOffloaderProperties()
-
setOffloaderProperties
@Config("pulsar.offloader-properties") public PulsarConnectorConfig setOffloaderProperties(java.lang.String offloaderProperties) throws java.io.IOException- Throws:
java.io.IOException
-
getAuthPlugin
public java.lang.String getAuthPlugin()
-
setAuthPlugin
@Config("pulsar.auth-plugin") public PulsarConnectorConfig setAuthPlugin(java.lang.String authPluginClassName) throws java.io.IOException- Throws:
java.io.IOException
-
getAuthParams
public java.lang.String getAuthParams()
-
setAuthParams
@Config("pulsar.auth-params") public PulsarConnectorConfig setAuthParams(java.lang.String authParams) throws java.io.IOException- Throws:
java.io.IOException
-
isTlsAllowInsecureConnection
public java.lang.Boolean isTlsAllowInsecureConnection()
-
setTlsAllowInsecureConnection
@Config("pulsar.tls-allow-insecure-connection") public PulsarConnectorConfig setTlsAllowInsecureConnection(boolean tlsAllowInsecureConnection)
-
isTlsHostnameVerificationEnable
public java.lang.Boolean isTlsHostnameVerificationEnable()
-
setTlsHostnameVerificationEnable
@Config("pulsar.tls-hostname-verification-enable") public PulsarConnectorConfig setTlsHostnameVerificationEnable(boolean tlsHostnameVerificationEnable)
-
getTlsTrustCertsFilePath
public java.lang.String getTlsTrustCertsFilePath()
-
setTlsTrustCertsFilePath
@Config("pulsar.tls-trust-cert-file-path") public PulsarConnectorConfig setTlsTrustCertsFilePath(java.lang.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
public java.lang.String getNarExtractionDirectory()
-
setNarExtractionDirectory
@Config("pulsar.nar-extraction-directory") public PulsarConnectorConfig setNarExtractionDirectory(java.lang.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
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-