Class PulsarConnectorConfig

java.lang.Object
org.apache.pulsar.sql.presto.PulsarConnectorConfig
All Implemented Interfaces:
AutoCloseable

public class PulsarConnectorConfig extends Object implements AutoCloseable
This object handles configuration of the Pulsar connector for the Presto engine.
  • Constructor Details

    • PulsarConnectorConfig

      public PulsarConnectorConfig()
  • Method Details

    • getBrokerServiceUrl

      @NotNull public @NotNull String getBrokerServiceUrl()
    • setBrokerServiceUrl

      @Config("pulsar.broker-service-url") public PulsarConnectorConfig setBrokerServiceUrl(String brokerServiceUrl)
    • setWebServiceUrl

      @Config("pulsar.web-service-url") public PulsarConnectorConfig setWebServiceUrl(String webServiceUrl)
    • getWebServiceUrl

      public String getWebServiceUrl()
    • setMaxMessageSize

      @Config("pulsar.max-message-size") public PulsarConnectorConfig setMaxMessageSize(int maxMessageSize)
    • getMaxMessageSize

      public int getMaxMessageSize()
    • getZookeeperUri

      @NotNull public @NotNull String getZookeeperUri()
    • setZookeeperUri

      @Config("pulsar.zookeeper-uri") public PulsarConnectorConfig setZookeeperUri(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 String getStatsProvider()
    • setStatsProvider

      @Config("pulsar.stats-provider") public PulsarConnectorConfig setStatsProvider(String statsProvider)
    • getStatsProviderConfigs

      @NotNull public @NotNull Map<String,String> getStatsProviderConfigs()
    • setStatsProviderConfigs

      @Config("pulsar.stats-provider-configs") public PulsarConnectorConfig setStatsProviderConfigs(String statsProviderConfigs) throws IOException
      Throws:
      IOException
    • getRewriteNamespaceDelimiter

      public String 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

      public String getManagedLedgerOffloadDriver()
    • setManagedLedgerOffloadDriver

      @Config("pulsar.managed-ledger-offload-driver") public PulsarConnectorConfig setManagedLedgerOffloadDriver(String managedLedgerOffloadDriver) throws IOException
      Throws:
      IOException
    • getOffloadersDirectory

      public String getOffloadersDirectory()
    • setOffloadersDirectory

      @Config("pulsar.offloaders-directory") public PulsarConnectorConfig setOffloadersDirectory(String offloadersDirectory) throws IOException
      Throws:
      IOException
    • getOffloaderProperties

      public Map<String,String> getOffloaderProperties()
    • setOffloaderProperties

      @Config("pulsar.offloader-properties") public PulsarConnectorConfig setOffloaderProperties(String offloaderProperties) throws IOException
      Throws:
      IOException
    • getAuthPlugin

      public String getAuthPlugin()
    • setAuthPlugin

      @Config("pulsar.auth-plugin") public PulsarConnectorConfig setAuthPlugin(String authPluginClassName) throws IOException
      Throws:
      IOException
    • getAuthParams

      public String getAuthParams()
    • setAuthParams

      @Config("pulsar.auth-params") public PulsarConnectorConfig setAuthParams(String authParams) throws IOException
      Throws:
      IOException
    • isTlsAllowInsecureConnection

      public Boolean isTlsAllowInsecureConnection()
    • setTlsAllowInsecureConnection

      @Config("pulsar.tls-allow-insecure-connection") public PulsarConnectorConfig setTlsAllowInsecureConnection(boolean tlsAllowInsecureConnection)
    • isTlsHostnameVerificationEnable

      public Boolean isTlsHostnameVerificationEnable()
    • setTlsHostnameVerificationEnable

      @Config("pulsar.tls-hostname-verification-enable") public PulsarConnectorConfig setTlsHostnameVerificationEnable(boolean tlsHostnameVerificationEnable)
    • getTlsTrustCertsFilePath

      public String 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

      public String 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

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object