You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by to...@apache.org on 2022/04/05 16:11:23 UTC
[shardingsphere] branch master updated (107152d8ae6 -> 10fdd38cbfd)
This is an automated email from the ASF dual-hosted git repository.
totalo pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
from 107152d8ae6 Refactor package of shardingsphere spi (#16605)
add 10fdd38cbfd Split TypedSPI to StatefulTypedSPI and StatelessTypedSPI (#16610)
No new revisions were added by this update.
Summary of changes:
.../ClassBasedShardingAlgorithmFactory.java | 4 +-
...lterShardingTableRuleStatementPreprocessor.java | 10 +--
.../config/algorithm/ShardingSphereAlgorithm.java | 4 +-
.../detector/DataSourcePoolActiveDetector.java | 4 +-
.../DataSourcePoolActiveDetectorFactory.java | 5 +-
.../pool/metadata/DataSourcePoolMetaData.java | 4 +-
.../metadata/DataSourcePoolMetaDataFactory.java | 3 +-
.../type/dbcp/DBCPDataSourcePoolMetaData.java | 15 +++--
.../type/hikari/HikariDataSourcePoolMetaData.java | 74 ++++++++++++++--------
.../RuleDefinitionAlterPreprocessor.java | 4 +-
.../infra/distsql/query/DistSQLResultSet.java | 4 +-
.../infra/distsql/update/RALUpdater.java | 4 +-
.../distsql/update/RuleDefinitionUpdater.java | 4 +-
.../PersistRepositoryConfigurationYamlSwapper.java | 4 +-
...stRepositoryConfigurationYamlSwapperEngine.java | 12 ++--
.../context/refresher/MetaDataRefreshEngine.java | 2 +-
.../infra/context/refresher/MetaDataRefresher.java | 4 +-
.../provider/DatetimeLoadingSQLProvider.java | 4 +-
.../DatetimeLoadingSQLProviderFactory.java | 4 +-
.../sane/JDBCSaneQueryResultEngineFactory.java | 4 +-
.../driver/jdbc/sane/SaneQueryResultEngine.java | 4 +-
.../driver/DriverExecutionPrepareEngine.java | 3 +-
.../prepare/driver/SQLExecutionUnitBuilder.java | 4 +-
.../parser/dialect/OptimizerSQLDialectBuilder.java | 4 +-
.../AbstractAlgorithmProvidedBeanRegistry.java | 6 +-
.../natived/builder/StoragePrivilegeBuilder.java | 5 +-
.../natived/builder/StoragePrivilegeHandler.java | 4 +-
.../builder/dialect/MySQLPrivilegeHandlerTest.java | 9 ++-
.../dialect/OraclePrivilegeHandlerTest.java | 9 ++-
.../dialect/PostgreSQLPrivilegeHandlerTest.java | 9 ++-
.../dialect/SQLServerPrivilegeHandlerTest.java | 9 ++-
.../spi/TransactionConfigurationFileGenerator.java | 4 +-
...ansactionConfigurationFileGeneratorFactory.java | 3 +-
.../xa/jta/connection/XAConnectionWrapper.java | 4 +-
.../jta/connection/XAConnectionWrapperFactory.java | 4 +-
.../connection/dialect/H2XAConnectionWrapper.java | 2 +-
.../dialect/MariaDBXAConnectionWrapper.java | 2 +-
.../dialect/MySQLXAConnectionWrapper.java | 2 +-
.../dialect/OpenGaussXAConnectionWrapper.java | 2 +-
.../dialect/OracleXAConnectionWrapper.java | 2 +-
.../dialect/PostgreSQLXAConnectionWrapper.java | 2 +-
.../xa/spi/XATransactionManagerProvider.java | 4 +-
.../mode/manager/ContextManagerBuilder.java | 4 +-
.../mode/manager/ContextManagerBuilderFactory.java | 4 +-
.../mode/persist/PersistRepository.java | 4 +-
.../admin/DatabaseAdminBackendHandlerFactory.java | 5 +-
.../executor/DatabaseAdminExecutorFactory.java | 4 +-
.../update/UpdatableScalingRALBackendHandler.java | 4 +-
.../rdl/rule/RuleDefinitionBackendHandler.java | 6 +-
.../proxy/frontend/state/ProxyStateContext.java | 3 +-
.../proxy/frontend/state/impl/OKProxyState.java | 4 +-
.../typed/{TypedSPI.java => StatefulTypedSPI.java} | 22 +------
.../spi/type/typed/StatelessTypedSPI.java | 6 +-
.../shardingsphere/spi/type/typed/TypedSPI.java | 18 ------
.../spi/type/typed/TypedSPIRegistry.java | 61 ++++++++++++++----
.../spi/ShardingSphereServiceLoaderTest.java | 24 +++----
.../spi/type/typed/TypedSPIRegistryTest.java | 57 ++++++++++++-----
.../type/typed/fixture/NoImplTypedSPIFixture.java | 24 -------
.../spi/type/typed/fixture/TypedSPIFixture.java | 23 -------
.../fixture/stateful/StatefulTypedSPIFixture.java | 9 ++-
.../StatefulTypedSPIFixtureImpl.java} | 8 +--
.../stateless/StatelessTypedSPIFixture.java | 6 +-
.../stateless/StatelessTypedSPIFixtureImpl.java} | 6 +-
...ngsphere.spi.type.typed.fixture.TypedSPIFixture | 18 ------
....typed.fixture.stateful.StatefulTypedSPIFixture | 3 +-
...yped.fixture.stateless.StatelessTypedSPIFixture | 3 +-
66 files changed, 274 insertions(+), 322 deletions(-)
copy shardingsphere-spi/src/main/java/org/apache/shardingsphere/spi/type/typed/{TypedSPI.java => StatefulTypedSPI.java} (76%)
copy shardingsphere-features/shardingsphere-shadow/shardingsphere-shadow-api/src/main/java/org/apache/shardingsphere/shadow/api/shadow/ShadowValue.java => shardingsphere-spi/src/main/java/org/apache/shardingsphere/spi/type/typed/StatelessTypedSPI.java (86%)
delete mode 100644 shardingsphere-spi/src/test/java/org/apache/shardingsphere/spi/type/typed/fixture/NoImplTypedSPIFixture.java
delete mode 100644 shardingsphere-spi/src/test/java/org/apache/shardingsphere/spi/type/typed/fixture/TypedSPIFixture.java
copy shardingsphere-kernel/shardingsphere-traffic/shardingsphere-traffic-api/src/main/java/org/apache/shardingsphere/traffic/api/traffic/identifier/SimplifiedTrafficAlgorithm.java => shardingsphere-spi/src/test/java/org/apache/shardingsphere/spi/type/typed/fixture/stateful/StatefulTypedSPIFixture.java (80%)
rename shardingsphere-spi/src/test/java/org/apache/shardingsphere/spi/type/typed/fixture/{TypedSPIFixtureImpl.java => stateful/StatefulTypedSPIFixtureImpl.java} (82%)
copy examples/example-core/example-api/src/main/java/org/apache/shardingsphere/example/core/api/repository/UserRepository.java => shardingsphere-spi/src/test/java/org/apache/shardingsphere/spi/type/typed/fixture/stateless/StatelessTypedSPIFixture.java (79%)
copy shardingsphere-spi/src/test/java/org/apache/shardingsphere/spi/type/{singleton/fixture/SingletonSPIFixtureImpl.java => typed/fixture/stateless/StatelessTypedSPIFixtureImpl.java} (81%)
delete mode 100644 shardingsphere-spi/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.type.typed.fixture.TypedSPIFixture
copy examples/docker/shardingsphere-proxy/governance/run.sh => shardingsphere-spi/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.type.typed.fixture.stateful.StatefulTypedSPIFixture (90%)
copy examples/docker/shardingsphere-proxy/governance/run.sh => shardingsphere-spi/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.type.typed.fixture.stateless.StatelessTypedSPIFixture (89%)