public class ConnectionConfigImpl extends Object implements ConnectionConfig
ConnectionConfig
.Modifier and Type | Class and Description |
---|---|
static interface |
ConnectionConfigImpl.Converter<T>
Callback to parse a property from string to its native type.
|
static class |
ConnectionConfigImpl.PropEnv
The combination of a property definition and a map of property values.
|
Modifier and Type | Field and Description |
---|---|
static ConnectionConfigImpl.Converter<Boolean> |
BOOLEAN_CONVERTER |
static ConnectionConfigImpl.Converter<String> |
IDENTITY_CONVERTER |
static ConnectionConfigImpl.Converter<Number> |
NUMBER_CONVERTER |
protected Properties |
properties |
Constructor and Description |
---|
ConnectionConfigImpl(Properties properties) |
protected final Properties properties
public static final ConnectionConfigImpl.Converter<Boolean> BOOLEAN_CONVERTER
public static final ConnectionConfigImpl.Converter<Number> NUMBER_CONVERTER
public static final ConnectionConfigImpl.Converter<String> IDENTITY_CONVERTER
public ConnectionConfigImpl(Properties properties)
public String schema()
schema
in interface ConnectionConfig
BuiltInConnectionProperty.SCHEMA
public String timeZone()
timeZone
in interface ConnectionConfig
BuiltInConnectionProperty.TIME_ZONE
public Service.Factory factory()
factory
in interface ConnectionConfig
BuiltInConnectionProperty.FACTORY
public String url()
url
in interface ConnectionConfig
BuiltInConnectionProperty.URL
public String serialization()
serialization
in interface ConnectionConfig
BuiltInConnectionProperty.SERIALIZATION
public String authentication()
authentication
in interface ConnectionConfig
BuiltInConnectionProperty.AUTHENTICATION
public String avaticaUser()
avaticaUser
in interface ConnectionConfig
BuiltInConnectionProperty.AVATICA_USER
public String avaticaPassword()
avaticaPassword
in interface ConnectionConfig
BuiltInConnectionProperty.AVATICA_PASSWORD
public AvaticaHttpClientFactory httpClientFactory()
httpClientFactory
in interface ConnectionConfig
BuiltInConnectionProperty.HTTP_CLIENT_FACTORY
public String httpClientClass()
httpClientClass
in interface ConnectionConfig
BuiltInConnectionProperty.HTTP_CLIENT_IMPL
public String kerberosPrincipal()
kerberosPrincipal
in interface ConnectionConfig
BuiltInConnectionProperty.PRINCIPAL
public File kerberosKeytab()
kerberosKeytab
in interface ConnectionConfig
BuiltInConnectionProperty.KEYTAB
public String keystoreType()
keystoreType
in interface ConnectionConfig
BuiltInConnectionProperty.KEYSTORE_TYPE
public File truststore()
truststore
in interface ConnectionConfig
BuiltInConnectionProperty.TRUSTSTORE
public String truststorePassword()
truststorePassword
in interface ConnectionConfig
BuiltInConnectionProperty.TRUSTSTORE_PASSWORD
public File keystore()
keystore
in interface ConnectionConfig
BuiltInConnectionProperty.KEYSTORE
public String keystorePassword()
keystorePassword
in interface ConnectionConfig
BuiltInConnectionProperty.KEYSTORE_PASSWORD
public String keyPassword()
keyPassword
in interface ConnectionConfig
BuiltInConnectionProperty.KEY_PASSWORD
public HostnameVerificationConfigurable.HostnameVerification hostnameVerification()
hostnameVerification
in interface ConnectionConfig
BuiltInConnectionProperty.HOSTNAME_VERIFICATION
public boolean transparentReconnectionEnabled()
transparentReconnectionEnabled
in interface ConnectionConfig
BuiltInConnectionProperty.TRANSPARENT_RECONNECTION
public int fetchSize()
fetchSize
in interface ConnectionConfig
BuiltInConnectionProperty.FETCH_SIZE
public boolean useClientSideLb()
useClientSideLb
in interface ConnectionConfig
#
public String getLbURLs()
getLbURLs
in interface ConnectionConfig
BuiltInConnectionProperty.LB_URLS
public LBStrategy getLBStrategy()
getLBStrategy
in interface ConnectionConfig
BuiltInConnectionProperty.LB_STRATEGY
public int getLBConnectionFailoverRetries()
getLBConnectionFailoverRetries
in interface ConnectionConfig
BuiltInConnectionProperty.LB_CONNECTION_FAILOVER_RETRIES
public long getLBConnectionFailoverSleepTime()
getLBConnectionFailoverSleepTime
in interface ConnectionConfig
BuiltInConnectionProperty.LB_CONNECTION_FAILOVER_SLEEP_TIME
public long getHttpConnectionTimeout()
getHttpConnectionTimeout
in interface ConnectionConfig
BuiltInConnectionProperty.HTTP_CONNECTION_TIMEOUT
public long getHttpResponseTimeout()
getHttpResponseTimeout
in interface ConnectionConfig
BuiltInConnectionProperty.HTTP_RESPONSE_TIMEOUT
public static Map<ConnectionProperty,String> parse(Properties properties, Map<String,? extends ConnectionProperty> nameToProps)
Properties
object containing (name, value)
pairs into a map whose keys are
InternalProperty
objects.
Matching is case-insensitive. Throws if a property is not known. If a property occurs more than once, takes the last occurrence.
properties
- PropertiesRuntimeException
- if a property is not knownpublic static <E extends Enum> ConnectionConfigImpl.Converter<E> enumConverter(Class<E> enumClass)
public static <T> ConnectionConfigImpl.Converter<T> pluginConverter(Class<T> pluginClass, T defaultInstance)
Copyright © 2012-2024 Apache Software Foundation. All Rights Reserved.