shardingsphere-scaling/shardingsphere-scaling-core/src/main/java/org/apache/shardingsphere/scaling/core/job/check/EnvironmentCheckerFactory.java
/**
     * Create data source checker instance.
     *
     * @param databaseType database type
     * @return data source checker
     */
Create data source checker instance.
@param databaseType database type
@return data source checker
Create data source checker instance . @param databaseType database type @return data source checker
@SneakyThrows(ReflectiveOperationException.class)
    public static DataSourceChecker newInstance(final String databaseType) {
        ScalingEntry scalingEntry = ScalingEntryLoader.getInstance(databaseType);
        return scalingEntry.getEnvironmentCheckerClass().getConstructor().newInstance().getDataSourceCheckerClass().getConstructor().newInstance();
    }
@ SneakyThrows ( ReflectiveOperationException . class ) public static DataSourceChecker newInstance ( final String databaseType ) { ScalingEntry scalingEntry = ScalingEntryLoader . getInstance ( databaseType ) ; return scalingEntry . getEnvironmentCheckerClass ( ) . getConstructor ( ) . newInstance ( ) . getDataSourceCheckerClass ( ) . getConstructor ( ) . newInstance ( ) ; }
Create data source checker instance.
Create data source checker instance .