public class DataCenterConfig extends Object
| Constructor and Description |
|---|
DataCenterConfig() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken()
Get access token.
|
String |
getApplicationNamePrefix()
Get application name prefix.
|
io.airlift.units.Duration |
getClientTimeout()
Get the data center client timeout.
|
String |
getConnectionPassword()
Get the connection password.
|
@NotNull URI |
getConnectionUrl() |
String |
getConnectionUser()
Get the connection user name.
|
String |
getExtraCredentials() |
String |
getHttpProxy()
Get http proxy.
|
io.airlift.units.Duration |
getHttpRequestConnectTimeout()
Get the http request connection timeout.
|
io.airlift.units.Duration |
getHttpRequestReadTimeout()
Get the http request read timeout.
|
String |
getKerberosConfigPath() |
String |
getKerberosCredentialCachePath() |
String |
getKerberosKeytabPath() |
String |
getKerberosPrincipal() |
String |
getKerberosRemoteServiceName() |
String |
getKerberosServicePrincipalPattern() |
io.airlift.units.Duration |
getMaxAnticipatedDelay() |
int |
getMaxIdleConnections() |
long |
getMetadataCacheMaximumSize() |
io.airlift.units.Duration |
getMetadataCacheTtl() |
String |
getRemoteClusterId()
Get the remote cluster id the dcc want to connect.
|
io.airlift.units.DataSize |
getRemoteHttpServerMaxRequestHeaderSize() |
String |
getSocksProxy()
Get the sockets proxy.
|
String |
getSslKeyStorePassword() |
String |
getSslKeyStorePath()
Get ssl key store path.
|
String |
getSslTrustStorePassword() |
String |
getSslTrustStorePath() |
io.airlift.units.Duration |
getUpdateThreshold() |
boolean |
isCompressionEnabled() |
boolean |
isKerberosUseCanonicalHostname() |
boolean |
isMetadataCacheEnabled() |
boolean |
isQueryPushDownEnabled() |
boolean |
isSsl()
Is ssl enable.
|
DataCenterConfig |
setAccessToken(String accessToken)
Set accessToken
|
DataCenterConfig |
setApplicationNamePrefix(String applicationNamePrefix)
Set application name prefix
|
DataCenterConfig |
setClientTimeout(io.airlift.units.Duration clientTimeout)
Set data center client timeout.
|
DataCenterConfig |
setCompressionEnabled(boolean isCompressionEnabledParameter)
set compression enabled.
|
DataCenterConfig |
setConnectionPassword(String connectionPassword)
Set connection password.
|
DataCenterConfig |
setConnectionUrl(URI connectionUrl)
Set connection url, it is remote data center url.
|
DataCenterConfig |
setConnectionUser(String connectionUser)
Set connection user name.
|
DataCenterConfig |
setExtraCredentials(String extraCredentials)
set extraCredentials
|
DataCenterConfig |
setHttpProxy(String httpProxy)
Set http proxy
|
DataCenterConfig |
setHttpRequestConnectTimeout(io.airlift.units.Duration httpRequestConnectTimeout)
Set http request connection timeout.
|
DataCenterConfig |
setHttpRequestReadTimeout(io.airlift.units.Duration httpRequestReadTimeout)
Set http request read timeout.
|
DataCenterConfig |
setKerberosConfigPath(String kerberosConfigPath)
set kerberosConfigPath
|
DataCenterConfig |
setKerberosCredentialCachePath(String kerberosCredentialCachePath)
set kerberosCredentialCachePath
|
DataCenterConfig |
setKerberosKeytabPath(String kerberosKeytabPath)
set kerberosKeytabPath
|
DataCenterConfig |
setKerberosPrincipal(String kerberosPrincipal)
set kerberosPrincipal
|
DataCenterConfig |
setKerberosRemoteServiceName(String kerberosRemoteServiceName)
set kerberosRemoteServiceName
|
DataCenterConfig |
setKerberosServicePrincipalPattern(String kerberosServicePrincipalPattern)
set kerberosServicePrincipalPattern
|
DataCenterConfig |
setKerberosUseCanonicalHostname(boolean isKerberosUseCanonicalHostnameParameter)
set iskerberosUseCanonicalHostname
|
DataCenterConfig |
setMaxAnticipatedDelay(io.airlift.units.Duration maxAnticipatedDelay)
set maxAnticipatedDelay
|
DataCenterConfig |
setMaxIdleConnections(int maxIdleConnectionsParameter)
set maximum http client idle connections in connection pool.
|
DataCenterConfig |
setMetadataCacheEnabled(boolean isMetadataCacheEnabledParameter)
set metadataCacheEnabled
|
DataCenterConfig |
setMetadataCacheMaximumSize(long metadataCacheMaximumSize)
set metadataCacheMaximumSize
|
DataCenterConfig |
setMetadataCacheTtl(io.airlift.units.Duration metadataCacheTtl)
set metadataCacheTtl
|
DataCenterConfig |
setQueryPushDownEnabled(boolean isQueryPushDownEnabledParameter)
set queryPushDownEnabled
|
DataCenterConfig |
setRemoteClusterId(String tenant)
Set the remote cluster id the dcc want to connect, when remote has multi clusters
We need a cluster ID to identify the cluster we want to connect to.
|
DataCenterConfig |
setRemoteHttpServerMaxRequestHeaderSize(io.airlift.units.DataSize remoteHeaderSizeParameter)
set remoteHeaderSize
|
DataCenterConfig |
setSocksProxy(String socksProxy)
Set socksProxy
|
DataCenterConfig |
setSsl(boolean isSslParameter)
Set ssl
|
DataCenterConfig |
setSslKeyStorePassword(String sslKeyStorePassword)
set sslKeyStorePassword
|
DataCenterConfig |
setSslKeyStorePath(String sslKeyStorePath)
Set sslKeyStorePath
|
DataCenterConfig |
setSslTrustStorePassword(String sslTrustStorePassword)
set sslTrustStorePassword
|
DataCenterConfig |
setSslTrustStorePath(String sslTrustStorePath)
set sslTrustStorePath
|
DataCenterConfig |
setUpdateThreshold(io.airlift.units.Duration updateThreshold) |
@NotNull public @NotNull URI getConnectionUrl()
public io.airlift.units.Duration getUpdateThreshold()
@Config(value="hetu.dc.catalog.update.threshold") public DataCenterConfig setUpdateThreshold(io.airlift.units.Duration updateThreshold)
@Config(value="connection-url") public DataCenterConfig setConnectionUrl(URI connectionUrl)
connectionUrl - the connection url of data center.public io.airlift.units.Duration getHttpRequestReadTimeout()
@Config(value="dc.http-request-readTimeout") public DataCenterConfig setHttpRequestReadTimeout(io.airlift.units.Duration httpRequestReadTimeout)
httpRequestReadTimeout - the http request read timeout.public io.airlift.units.Duration getHttpRequestConnectTimeout()
@Config(value="dc.http-request-connectTimeout") public DataCenterConfig setHttpRequestConnectTimeout(io.airlift.units.Duration httpRequestConnectTimeout)
httpRequestConnectTimeout - the request connection timeout.public io.airlift.units.Duration getClientTimeout()
@Config(value="dc.http-client-timeout") public DataCenterConfig setClientTimeout(io.airlift.units.Duration clientTimeout)
clientTimeout - the data center client timeout.@Nullable public String getConnectionUser()
@Config(value="connection-user") public DataCenterConfig setConnectionUser(String connectionUser)
connectionUser - the connection user name.@Nullable public String getConnectionPassword()
@Config(value="connection-password") public DataCenterConfig setConnectionPassword(String connectionPassword)
connectionPassword - the connection password.@Nullable public String getRemoteClusterId()
@Config(value="dc.remote.cluster.id") public DataCenterConfig setRemoteClusterId(String tenant)
tenant - the connection user name.public String getSocksProxy()
@Config(value="dc.socksproxy") public DataCenterConfig setSocksProxy(String socksProxy)
socksProxy - socksProxy from properties filepublic String getHttpProxy()
@Config(value="dc.httpproxy") public DataCenterConfig setHttpProxy(String httpProxy)
httpProxy - httpProxy from properties filepublic String getApplicationNamePrefix()
@Config(value="dc.application.name.prefix") public DataCenterConfig setApplicationNamePrefix(String applicationNamePrefix)
applicationNamePrefix - applicationNamePrefix from properties filepublic String getAccessToken()
@Config(value="dc.accesstoken") public DataCenterConfig setAccessToken(String accessToken)
accessToken - accessToken from properties filepublic boolean isSsl()
@Config(value="dc.ssl") public DataCenterConfig setSsl(boolean isSslParameter)
isSslParameter - isSslParameter from properties filepublic String getSslKeyStorePath()
@Config(value="dc.ssl.keystore.path") public DataCenterConfig setSslKeyStorePath(String sslKeyStorePath)
sslKeyStorePath - sslKeyStorePath from properties filepublic String getSslKeyStorePassword()
@Config(value="dc.ssl.keystore.password") public DataCenterConfig setSslKeyStorePassword(String sslKeyStorePassword)
sslKeyStorePassword - sslKeyStorePassword from properties filepublic String getSslTrustStorePath()
@Config(value="dc.ssl.truststore.path") public DataCenterConfig setSslTrustStorePath(String sslTrustStorePath)
sslTrustStorePath - sslTrustStorePath from properties filepublic String getSslTrustStorePassword()
@Config(value="dc.ssl.truststore.password") public DataCenterConfig setSslTrustStorePassword(String sslTrustStorePassword)
sslTrustStorePassword - sslTrustStorePassword from properties filepublic String getKerberosConfigPath()
@Config(value="dc.kerberos.config.path") public DataCenterConfig setKerberosConfigPath(String kerberosConfigPath)
kerberosConfigPath - kerberosConfigPath from properties filepublic String getKerberosCredentialCachePath()
@Config(value="dc.kerberos.credential.cachepath") public DataCenterConfig setKerberosCredentialCachePath(String kerberosCredentialCachePath)
kerberosCredentialCachePath - kerberosCredentialCachePath from properties filepublic String getKerberosKeytabPath()
@Config(value="dc.kerberos.keytab.path") public DataCenterConfig setKerberosKeytabPath(String kerberosKeytabPath)
kerberosKeytabPath - kerberosKeytabPath from properties filepublic String getKerberosPrincipal()
@Config(value="dc.kerberos.principal") public DataCenterConfig setKerberosPrincipal(String kerberosPrincipal)
kerberosPrincipal - kerberosPrincipal from properties filepublic String getKerberosRemoteServiceName()
@Config(value="dc.kerberos.remote.service.name") public DataCenterConfig setKerberosRemoteServiceName(String kerberosRemoteServiceName)
kerberosRemoteServiceName - kerberosRemoteServiceName from properties filepublic String getKerberosServicePrincipalPattern()
@Config(value="dc.kerberos.service.principal.pattern") public DataCenterConfig setKerberosServicePrincipalPattern(String kerberosServicePrincipalPattern)
kerberosServicePrincipalPattern - kerberosServicePrincipalPattern from properties filepublic boolean isKerberosUseCanonicalHostname()
@Config(value="dc.kerberos.use.canonical.hostname") public DataCenterConfig setKerberosUseCanonicalHostname(boolean isKerberosUseCanonicalHostnameParameter)
isKerberosUseCanonicalHostnameParameter - isKerberosUseCanonicalHostnameParameter from properties filepublic String getExtraCredentials()
@Config(value="dc.extra.credentials") public DataCenterConfig setExtraCredentials(String extraCredentials)
extraCredentials - extraCredentials from properties filepublic boolean isQueryPushDownEnabled()
@Config(value="dc.query.pushdown.enabled") public DataCenterConfig setQueryPushDownEnabled(boolean isQueryPushDownEnabledParameter)
isQueryPushDownEnabledParameter - isQueryPushDownEnabledParameter from properties filepublic io.airlift.units.DataSize getRemoteHttpServerMaxRequestHeaderSize()
@Config(value="dc.remote-http-server.max-request-header-size") public DataCenterConfig setRemoteHttpServerMaxRequestHeaderSize(io.airlift.units.DataSize remoteHeaderSizeParameter)
remoteHeaderSizeParameter - Remote Server Max Request Header Sizepublic io.airlift.units.Duration getMetadataCacheTtl()
@Config(value="dc.metadata.cache.ttl") public DataCenterConfig setMetadataCacheTtl(io.airlift.units.Duration metadataCacheTtl)
metadataCacheTtl - metadataCacheTtl from properties filepublic io.airlift.units.Duration getMaxAnticipatedDelay()
@Config(value="dc.max.anticipated.delay") public DataCenterConfig setMaxAnticipatedDelay(io.airlift.units.Duration maxAnticipatedDelay)
maxAnticipatedDelay - maxAnticipatedDelay from properties filepublic long getMetadataCacheMaximumSize()
@Config(value="dc.metadata.cache.maximum.size") public DataCenterConfig setMetadataCacheMaximumSize(long metadataCacheMaximumSize)
metadataCacheMaximumSize - metadataCacheMaximumSize from properties filepublic boolean isMetadataCacheEnabled()
@Config(value="dc.metadata.cache.enabled") public DataCenterConfig setMetadataCacheEnabled(boolean isMetadataCacheEnabledParameter)
isMetadataCacheEnabledParameter - metadataCacheEnabled from properties filepublic boolean isCompressionEnabled()
@Config(value="dc.http-compression") public DataCenterConfig setCompressionEnabled(boolean isCompressionEnabledParameter)
isCompressionEnabledParameter - compression enabled or not.public int getMaxIdleConnections()
@Config(value="dc.httpclient.maximum.idle.connections") public DataCenterConfig setMaxIdleConnections(int maxIdleConnectionsParameter)
maxIdleConnectionsParameter - maximum http client idle connections.Copyright © 2012–2020. All rights reserved.