Class MGRMySQLDatabaseDiscoveryProvider
java.lang.Object
org.apache.shardingsphere.dbdiscovery.mysql.type.MGRMySQLDatabaseDiscoveryProvider
- All Implemented Interfaces:
DatabaseDiscoveryProvider,org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
public final class MGRMySQLDatabaseDiscoveryProvider
extends Object
implements DatabaseDiscoveryProvider
MGR database discovery provider for MySQL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckEnvironment(String databaseName, Collection<DataSource> dataSources) getType()voidinit(Properties props) booleanisPrimaryInstance(DataSource dataSource) loadReplicaStatus(DataSource replicaDataSource) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
getTypeAliases, isDefault
-
Constructor Details
-
MGRMySQLDatabaseDiscoveryProvider
public MGRMySQLDatabaseDiscoveryProvider()
-
-
Method Details
-
init
- Specified by:
initin interfaceorg.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
-
checkEnvironment
- Specified by:
checkEnvironmentin interfaceDatabaseDiscoveryProvider
-
isPrimaryInstance
- Specified by:
isPrimaryInstancein interfaceDatabaseDiscoveryProvider- Throws:
SQLException
-
loadReplicaStatus
- Specified by:
loadReplicaStatusin interfaceDatabaseDiscoveryProvider- Throws:
SQLException
-
getMinEnabledReplicas
- Specified by:
getMinEnabledReplicasin interfaceDatabaseDiscoveryProvider
-
getType
- Specified by:
getTypein interfaceorg.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
-