public abstract class AbstractOrchestrationDataSource extends AbstractUnsupportedOperationDataSource implements AutoCloseable
| 构造器和说明 |
|---|
AbstractOrchestrationDataSource(ShardingOrchestrationFacade shardingOrchestrationFacade) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
protected Map<String,DataSource> |
getChangedDataSources(Map<String,DataSource> oldDataSources,
Map<String,org.apache.shardingsphere.underlying.common.config.DataSourceConfiguration> newDataSources) |
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
protected abstract DataSource |
getDataSource() |
protected List<String> |
getDeletedDataSources(Map<String,org.apache.shardingsphere.underlying.common.config.DataSourceConfiguration> dataSourceConfigurations) |
protected Map<String,org.apache.shardingsphere.underlying.common.config.DataSourceConfiguration> |
getModifiedDataSources(Map<String,org.apache.shardingsphere.underlying.common.config.DataSourceConfiguration> dataSourceConfigurations) |
Logger |
getParentLogger() |
protected void |
initShardingOrchestrationFacade() |
protected void |
initShardingOrchestrationFacade(Map<String,Map<String,org.apache.shardingsphere.underlying.common.config.DataSourceConfiguration>> dataSourceConfigurations,
Map<String,org.apache.shardingsphere.underlying.common.config.RuleConfiguration> schemaRuleMap,
Properties props) |
void |
renew(org.apache.shardingsphere.orchestration.core.registrycenter.event.CircuitStateChangedEvent circuitStateChangedEvent)
/**
Renew circuit breaker state.
|
getLoginTimeout, setLoginTimeoutisWrapperFor, recordMethodInvocation, replayMethodsInvocation, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLogWriter, setLogWriterisWrapperFor, unwrappublic AbstractOrchestrationDataSource(ShardingOrchestrationFacade shardingOrchestrationFacade)
protected abstract DataSource getDataSource()
public final Connection getConnection() throws SQLException
getConnection 在接口中 DataSourceSQLExceptionpublic final Connection getConnection(String username, String password) throws SQLException
getConnection 在接口中 DataSourceSQLExceptionpublic final Logger getParentLogger()
getParentLogger 在接口中 CommonDataSourcepublic final void close()
throws Exception
close 在接口中 AutoCloseableExceptionpublic final void renew(org.apache.shardingsphere.orchestration.core.registrycenter.event.CircuitStateChangedEvent circuitStateChangedEvent)
circuitStateChangedEvent - circuit state changed eventprotected final void initShardingOrchestrationFacade()
protected final void initShardingOrchestrationFacade(Map<String,Map<String,org.apache.shardingsphere.underlying.common.config.DataSourceConfiguration>> dataSourceConfigurations, Map<String,org.apache.shardingsphere.underlying.common.config.RuleConfiguration> schemaRuleMap, Properties props)
protected final Map<String,DataSource> getChangedDataSources(Map<String,DataSource> oldDataSources, Map<String,org.apache.shardingsphere.underlying.common.config.DataSourceConfiguration> newDataSources)
protected final Map<String,org.apache.shardingsphere.underlying.common.config.DataSourceConfiguration> getModifiedDataSources(Map<String,org.apache.shardingsphere.underlying.common.config.DataSourceConfiguration> dataSourceConfigurations)
Copyright © 2020 The Apache Software Foundation. All rights reserved.