Class ConnectionConfig (1.15.0)

public class ConnectionConfig

ConnectionConfig is an immutable configuration value object that holds the entire configuration of a CloudSqlInstance connection.

WARNING: This is an internal class. The API is subject to change without notice.

Inheritance

Object > ConnectionConfig

Static Fields

CLOUD_SQL_ADMIN_ROOT_URL_PROPERTY

public static final String CLOUD_SQL_ADMIN_ROOT_URL_PROPERTY
Field Value
Type Description
String

CLOUD_SQL_ADMIN_SERVICE_PATH_PROPERTY

public static final String CLOUD_SQL_ADMIN_SERVICE_PATH_PROPERTY
Field Value
Type Description
String

CLOUD_SQL_DELEGATES_PROPERTY

public static final String CLOUD_SQL_DELEGATES_PROPERTY
Field Value
Type Description
String

CLOUD_SQL_GOOGLE_CREDENTIALS_PATH

public static final String CLOUD_SQL_GOOGLE_CREDENTIALS_PATH
Field Value
Type Description
String

CLOUD_SQL_INSTANCE_PROPERTY

public static final String CLOUD_SQL_INSTANCE_PROPERTY
Field Value
Type Description
String

CLOUD_SQL_NAMED_CONNECTOR_PROPERTY

public static final String CLOUD_SQL_NAMED_CONNECTOR_PROPERTY
Field Value
Type Description
String

CLOUD_SQL_TARGET_PRINCIPAL_PROPERTY

public static final String CLOUD_SQL_TARGET_PRINCIPAL_PROPERTY
Field Value
Type Description
String

DEFAULT_AUTH_TYPE

public static final AuthType DEFAULT_AUTH_TYPE
Field Value
Type Description
AuthType

DEFAULT_IP_TYPES

public static final String DEFAULT_IP_TYPES
Field Value
Type Description
String

DEFAULT_IP_TYPE_LIST

public static final List<IpType> DEFAULT_IP_TYPE_LIST
Field Value
Type Description
List<IpType>

ENABLE_IAM_AUTH_PROPERTY

public static final String ENABLE_IAM_AUTH_PROPERTY
Field Value
Type Description
String

IP_TYPES_PROPERTY

public static final String IP_TYPES_PROPERTY
Field Value
Type Description
String

UNIX_SOCKET_PATH_SUFFIX_PROPERTY

public static final String UNIX_SOCKET_PATH_SUFFIX_PROPERTY
Field Value
Type Description
String

UNIX_SOCKET_PROPERTY

public static final String UNIX_SOCKET_PROPERTY
Field Value
Type Description
String

Static Methods

fromConnectionProperties(Properties props)

public static ConnectionConfig fromConnectionProperties(Properties props)

Create a new ConnectionConfig from the well known JDBC Connection properties.

Parameter
Name Description
props Properties
Returns
Type Description
ConnectionConfig

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getAuthType()

public AuthType getAuthType()
Returns
Type Description
AuthType

getCloudSqlInstance()

public String getCloudSqlInstance()
Returns
Type Description
String

getConnectorConfig()

public ConnectorConfig getConnectorConfig()
Returns
Type Description
ConnectorConfig

getIpTypes()

public List<IpType> getIpTypes()
Returns
Type Description
List<IpType>

getNamedConnector()

public String getNamedConnector()
Returns
Type Description
String

getUnixSocketPath()

public String getUnixSocketPath()
Returns
Type Description
String

getUnixSocketPathSuffix()

public String getUnixSocketPathSuffix()
Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

withConnectorConfig(ConnectorConfig config)

public ConnectionConfig withConnectorConfig(ConnectorConfig config)

Creates a new instance of the ConnectionConfig with an updated connectorConfig.

Parameter
Name Description
config ConnectorConfig
Returns
Type Description
ConnectionConfig