public class GlobalAuroraMysqlDialect extends AuroraMysqlDialect implements GlobalAuroraTopologyDialect
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
GLOBAL_INSTANCE_STATUS_EXISTS_QUERY |
protected static java.lang.String |
GLOBAL_STATUS_TABLE_EXISTS_QUERY |
protected static java.lang.String |
GLOBAL_TOPOLOGY_QUERY |
protected RdsUtils |
rdsUtils |
protected static java.lang.String |
REGION_BY_INSTANCE_ID_QUERY |
protected static java.lang.String |
REGION_COUNT_QUERY |
AURORA_VERSION_EXISTS_QUERY, BG_STATUS_QUERY, BG_TOPOLOGY_EXISTS_QUERY, INSTANCE_ID_QUERY, IS_READER_QUERY, TOPOLOGY_QUERY, WRITER_ID_QUERYdialectUtils, HOST_ALIAS_QUERY, HOST_ID_EXPRESSION, HOST_ID_QUERY, VERSION_QUERY| Constructor and Description |
|---|
GlobalAuroraMysqlDialect() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<HostSpec> |
filterAvailableHosts(@NonNull java.util.List<HostSpec> hosts,
@Nullable java.util.Set<java.lang.String> accessibleRegions)
Filters the provided list of hosts by the set of accessible AWS regions.
|
java.util.List<java.lang.String> |
getDialectUpdateCandidates() |
HostListProviderSupplier |
getHostListProviderSupplier() |
java.lang.String |
getRegionByInstanceIdQuery() |
java.lang.String |
getTopologyQuery() |
boolean |
isDialect(java.sql.Connection connection) |
getBlueGreenStatusQuery, getHostId, getHostRole, getWriterIdQuery, isBlueGreenStatusAvailablegetDefaultPort, getExceptionHandler, getFailoverRestrictions, getHostAliasQuery, getServerVersionQuery, prepareConnectPropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWriterIdQuerygetDefaultPort, getExceptionHandler, getFailoverRestrictions, getHostAliasQuery, getHostId, getHostRole, getServerVersionQuery, prepareConnectPropertiesprotected final RdsUtils rdsUtils
protected static final java.lang.String GLOBAL_STATUS_TABLE_EXISTS_QUERY
protected static final java.lang.String GLOBAL_INSTANCE_STATUS_EXISTS_QUERY
protected static final java.lang.String GLOBAL_TOPOLOGY_QUERY
protected static final java.lang.String REGION_COUNT_QUERY
protected static final java.lang.String REGION_BY_INSTANCE_ID_QUERY
public boolean isDialect(java.sql.Connection connection)
isDialect in interface DialectisDialect in class AuroraMysqlDialectpublic java.util.List<java.lang.String> getDialectUpdateCandidates()
getDialectUpdateCandidates in interface DialectgetDialectUpdateCandidates in class AuroraMysqlDialectpublic HostListProviderSupplier getHostListProviderSupplier()
getHostListProviderSupplier in interface DialectgetHostListProviderSupplier in class AuroraMysqlDialectpublic java.lang.String getTopologyQuery()
getTopologyQuery in interface TopologyDialectgetTopologyQuery in class AuroraMysqlDialectpublic java.lang.String getRegionByInstanceIdQuery()
getRegionByInstanceIdQuery in interface GlobalAuroraTopologyDialectpublic java.util.List<HostSpec> filterAvailableHosts(@NonNull java.util.List<HostSpec> hosts, @Nullable java.util.Set<java.lang.String> accessibleRegions)
DialectfilterAvailableHosts in interface Dialecthosts - the list of hosts to filteraccessibleRegions - the set of accessible AWS regions (lowercase), or null for no restriction