public class AuroraMysqlDialect extends MysqlDialect implements TopologyDialect, BlueGreenDialect
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
AURORA_VERSION_EXISTS_QUERY |
protected static java.lang.String |
BG_STATUS_QUERY |
protected static java.lang.String |
BG_TOPOLOGY_EXISTS_QUERY |
protected static java.lang.String |
INSTANCE_ID_QUERY |
protected static java.lang.String |
IS_READER_QUERY |
protected static java.lang.String |
TOPOLOGY_QUERY |
protected static java.lang.String |
WRITER_ID_QUERY |
dialectUtils, HOST_ALIAS_QUERY, HOST_ID_EXPRESSION, HOST_ID_QUERY, VERSION_QUERY| Constructor and Description |
|---|
AuroraMysqlDialect() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBlueGreenStatusQuery() |
java.util.List<java.lang.String> |
getDialectUpdateCandidates() |
@Nullable Pair<java.lang.String,java.lang.String> |
getHostId(java.sql.Connection connection) |
HostListProviderSupplier |
getHostListProviderSupplier() |
HostRole |
getHostRole(java.sql.Connection conn) |
java.lang.String |
getTopologyQuery() |
java.lang.String |
getWriterIdQuery() |
boolean |
isBlueGreenStatusAvailable(java.sql.Connection connection) |
boolean |
isDialect(java.sql.Connection connection) |
getDefaultPort, getExceptionHandler, getFailoverRestrictions, getHostAliasQuery, getServerVersionQuery, prepareConnectPropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilterAvailableHosts, getDefaultPort, getExceptionHandler, getFailoverRestrictions, getHostAliasQuery, getServerVersionQuery, prepareConnectPropertiesprotected static final java.lang.String AURORA_VERSION_EXISTS_QUERY
protected static final java.lang.String TOPOLOGY_QUERY
protected static final java.lang.String INSTANCE_ID_QUERY
protected static final java.lang.String WRITER_ID_QUERY
protected static final java.lang.String IS_READER_QUERY
protected static final java.lang.String BG_TOPOLOGY_EXISTS_QUERY
protected static final java.lang.String BG_STATUS_QUERY
public boolean isDialect(java.sql.Connection connection)
isDialect in interface DialectisDialect in class MysqlDialectpublic java.util.List<java.lang.String> getDialectUpdateCandidates()
getDialectUpdateCandidates in interface DialectgetDialectUpdateCandidates in class MysqlDialectpublic HostListProviderSupplier getHostListProviderSupplier()
getHostListProviderSupplier in interface DialectgetHostListProviderSupplier in class MysqlDialectpublic java.lang.String getTopologyQuery()
getTopologyQuery in interface TopologyDialectpublic @Nullable Pair<java.lang.String,java.lang.String> getHostId(java.sql.Connection connection) throws java.sql.SQLException
getHostId in interface DialectgetHostId in class MysqlDialectjava.sql.SQLExceptionpublic java.lang.String getWriterIdQuery()
getWriterIdQuery in interface TopologyDialectpublic HostRole getHostRole(java.sql.Connection conn) throws java.sql.SQLException
getHostRole in interface DialectgetHostRole in class MysqlDialectjava.sql.SQLExceptionpublic boolean isBlueGreenStatusAvailable(java.sql.Connection connection)
isBlueGreenStatusAvailable in interface BlueGreenDialectpublic java.lang.String getBlueGreenStatusQuery()
getBlueGreenStatusQuery in interface BlueGreenDialect