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

CLOUD_SQL_ADMIN_SERVICE_PATH_PROPERTY

public static final String CLOUD_SQL_ADMIN_SERVICE_PATH_PROPERTY
Field Value
TypeDescription
String

CLOUD_SQL_DELEGATES_PROPERTY

public static final String CLOUD_SQL_DELEGATES_PROPERTY
Field Value
TypeDescription
String

CLOUD_SQL_GOOGLE_CREDENTIALS_PATH

public static final String CLOUD_SQL_GOOGLE_CREDENTIALS_PATH
Field Value
TypeDescription
String

CLOUD_SQL_INSTANCE_PROPERTY

public static final String CLOUD_SQL_INSTANCE_PROPERTY
Field Value
TypeDescription
String

CLOUD_SQL_NAMED_CONNECTOR_PROPERTY

public static final String CLOUD_SQL_NAMED_CONNECTOR_PROPERTY
Field Value
TypeDescription
String

CLOUD_SQL_TARGET_PRINCIPAL_PROPERTY

public static final String CLOUD_SQL_TARGET_PRINCIPAL_PROPERTY
Field Value
TypeDescription
String

DEFAULT_AUTH_TYPE

public static final AuthType DEFAULT_AUTH_TYPE
Field Value
TypeDescription
AuthType

DEFAULT_IP_TYPES

public static final String DEFAULT_IP_TYPES
Field Value
TypeDescription
String

DEFAULT_IP_TYPE_LIST

public static final List<IpType> DEFAULT_IP_TYPE_LIST
Field Value
TypeDescription
List<IpType>

ENABLE_IAM_AUTH_PROPERTY

public static final String ENABLE_IAM_AUTH_PROPERTY
Field Value
TypeDescription
String

IP_TYPES_PROPERTY

public static final String IP_TYPES_PROPERTY
Field Value
TypeDescription
String

UNIX_SOCKET_PATH_SUFFIX_PROPERTY

public static final String UNIX_SOCKET_PATH_SUFFIX_PROPERTY
Field Value
TypeDescription
String

UNIX_SOCKET_PROPERTY

public static final String UNIX_SOCKET_PROPERTY
Field Value
TypeDescription
String

Static Methods

fromConnectionProperties(Properties props)

public static ConnectionConfig fromConnectionProperties(Properties props)

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

Parameter
NameDescription
propsProperties
Returns
TypeDescription
ConnectionConfig

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getAuthType()

public AuthType getAuthType()
Returns
TypeDescription
AuthType

getCloudSqlInstance()

public String getCloudSqlInstance()
Returns
TypeDescription
String

getConnectorConfig()

public ConnectorConfig getConnectorConfig()
Returns
TypeDescription
ConnectorConfig

getIpTypes()

public List<IpType> getIpTypes()
Returns
TypeDescription
List<IpType>

getNamedConnector()

public String getNamedConnector()
Returns
TypeDescription
String

getUnixSocketPath()

public String getUnixSocketPath()
Returns
TypeDescription
String

getUnixSocketPathSuffix()

public String getUnixSocketPathSuffix()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

withConnectorConfig(ConnectorConfig config)

public ConnectionConfig withConnectorConfig(ConnectorConfig config)

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

Parameter
NameDescription
configConnectorConfig
Returns
TypeDescription
ConnectionConfig