Package com.strongdm.api
Class SingleStore
java.lang.Object
com.strongdm.api.SingleStore
- All Implemented Interfaces:
Resource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe bind interface is the IP address to which the port override of a resource is bound (for example, 127.0.0.1).The database for healthchecks.A filter applied to the routing logic to pin datasource to nodes.booleanTrue if the datasource is reachable and the credentials are valid.The host to dial to initiate a connection from the egress node to this resource.getId()Unique identifier of the Resource.getName()Unique human-readable name of the Resource.The password to authenticate with.intgetPort()The port to dial to initiate a connection from the egress node to this resource.intThe local port used by clients to connect to this resource.ID of the proxy cluster for this resource, if any.booleanWhether native auth (mysql_native_password) is used for all connections (for backwards compatibility)ID of the secret store containing credentials for this resource, if any.DNS subdomain through which this resource may be accessed on clients.getTags()Tags is a map of key, value pairs.booleanIf true, appends the hostname to the username when hitting a database.azure.com addressThe username to authenticate with.voidThe bind interface is the IP address to which the port override of a resource is bound (for example, 127.0.0.1).voidsetDatabase(String in) The database for healthchecks.voidA filter applied to the routing logic to pin datasource to nodes.voidsetHealthy(boolean in) True if the datasource is reachable and the credentials are valid.voidsetHostname(String in) The host to dial to initiate a connection from the egress node to this resource.voidUnique identifier of the Resource.voidUnique human-readable name of the Resource.voidsetPassword(String in) The password to authenticate with.voidsetPort(int in) The port to dial to initiate a connection from the egress node to this resource.voidsetPortOverride(int in) The local port used by clients to connect to this resource.voidID of the proxy cluster for this resource, if any.voidsetRequireNativeAuth(boolean in) Whether native auth (mysql_native_password) is used for all connections (for backwards compatibility)voidID of the secret store containing credentials for this resource, if any.voidsetSubdomain(String in) DNS subdomain through which this resource may be accessed on clients.voidTags is a map of key, value pairs.voidsetUseAzureSingleServerUsernames(boolean in) If true, appends the hostname to the username when hitting a database.azure.com addressvoidsetUsername(String in) The username to authenticate with.
-
Constructor Details
-
SingleStore
public SingleStore()
-
-
Method Details
-
getBindInterface
The bind interface is the IP address to which the port override of a resource is bound (for example, 127.0.0.1). It is automatically generated if not provided and may also be set to one of the ResourceIPAllocationMode constants to select between VNM, loopback, or default allocation.- Specified by:
getBindInterfacein interfaceResource
-
setBindInterface
The bind interface is the IP address to which the port override of a resource is bound (for example, 127.0.0.1). It is automatically generated if not provided and may also be set to one of the ResourceIPAllocationMode constants to select between VNM, loopback, or default allocation.- Specified by:
setBindInterfacein interfaceResource
-
getDatabase
The database for healthchecks. Does not affect client requests. -
setDatabase
The database for healthchecks. Does not affect client requests. -
getEgressFilter
A filter applied to the routing logic to pin datasource to nodes.- Specified by:
getEgressFilterin interfaceResource
-
setEgressFilter
A filter applied to the routing logic to pin datasource to nodes.- Specified by:
setEgressFilterin interfaceResource
-
getHealthy
public boolean getHealthy()True if the datasource is reachable and the credentials are valid. -
setHealthy
public void setHealthy(boolean in) True if the datasource is reachable and the credentials are valid. -
getHostname
The host to dial to initiate a connection from the egress node to this resource. -
setHostname
The host to dial to initiate a connection from the egress node to this resource. -
getId
Unique identifier of the Resource. -
setId
Unique identifier of the Resource. -
getName
Unique human-readable name of the Resource. -
setName
Unique human-readable name of the Resource. -
getPassword
The password to authenticate with. -
setPassword
The password to authenticate with. -
getPort
public int getPort()The port to dial to initiate a connection from the egress node to this resource. -
setPort
public void setPort(int in) The port to dial to initiate a connection from the egress node to this resource. -
getPortOverride
public int getPortOverride()The local port used by clients to connect to this resource. It is automatically generated if not provided on create and may be re-generated on update by specifying a value of -1. -
setPortOverride
public void setPortOverride(int in) The local port used by clients to connect to this resource. It is automatically generated if not provided on create and may be re-generated on update by specifying a value of -1. -
getProxyClusterId
ID of the proxy cluster for this resource, if any. -
setProxyClusterId
ID of the proxy cluster for this resource, if any. -
getRequireNativeAuth
public boolean getRequireNativeAuth()Whether native auth (mysql_native_password) is used for all connections (for backwards compatibility) -
setRequireNativeAuth
public void setRequireNativeAuth(boolean in) Whether native auth (mysql_native_password) is used for all connections (for backwards compatibility) -
getSecretStoreId
ID of the secret store containing credentials for this resource, if any.- Specified by:
getSecretStoreIdin interfaceResource
-
setSecretStoreId
ID of the secret store containing credentials for this resource, if any.- Specified by:
setSecretStoreIdin interfaceResource
-
getSubdomain
DNS subdomain through which this resource may be accessed on clients. (e.g. "app-prod1" allows the resource to be accessed at "app-prod1.your-org-name.sdm-proxy-domain"). Only applicable to HTTP-based resources or resources using virtual networking mode. -
setSubdomain
DNS subdomain through which this resource may be accessed on clients. (e.g. "app-prod1" allows the resource to be accessed at "app-prod1.your-org-name.sdm-proxy-domain"). Only applicable to HTTP-based resources or resources using virtual networking mode. -
getTags
Tags is a map of key, value pairs. -
setTags
Tags is a map of key, value pairs. -
getUseAzureSingleServerUsernames
public boolean getUseAzureSingleServerUsernames()If true, appends the hostname to the username when hitting a database.azure.com address -
setUseAzureSingleServerUsernames
public void setUseAzureSingleServerUsernames(boolean in) If true, appends the hostname to the username when hitting a database.azure.com address -
getUsername
The username to authenticate with. -
setUsername
The username to authenticate with.
-