public final class MGRMySQLDatabaseDiscoveryProviderAlgorithm extends Object implements DatabaseDiscoveryProviderAlgorithm
| Constructor and Description |
|---|
MGRMySQLDatabaseDiscoveryProviderAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkEnvironment(String databaseName,
Collection<DataSource> dataSources) |
String |
getType() |
void |
init(Properties props) |
boolean |
isPrimaryInstance(DataSource dataSource) |
ReplicaDataSourceStatus |
loadReplicaStatus(DataSource replicaDataSource) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic MGRMySQLDatabaseDiscoveryProviderAlgorithm()
public void init(Properties props)
init in interface org.apache.shardingsphere.infra.util.spi.lifecycle.SPIPostProcessorpublic void checkEnvironment(String databaseName, Collection<DataSource> dataSources)
checkEnvironment in interface DatabaseDiscoveryProviderAlgorithmpublic boolean isPrimaryInstance(DataSource dataSource) throws SQLException
isPrimaryInstance in interface DatabaseDiscoveryProviderAlgorithmSQLExceptionpublic ReplicaDataSourceStatus loadReplicaStatus(DataSource replicaDataSource) throws SQLException
loadReplicaStatus in interface DatabaseDiscoveryProviderAlgorithmSQLExceptionpublic String getType()
getType in interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPICopyright © 2023 The Apache Software Foundation. All rights reserved.