shardingsphere-proxy/shardingsphere-proxy-bootstrap/src/main/java/org/apache/shardingsphere/proxy/initializer/BootstrapInitializer.java
/**
     * Initialize.
     *
     * @param yamlConfig YAML proxy configuration
     * @param port proxy port
     * @throws SQLException SQL exception
     */
Initialize.
@param yamlConfig YAML proxy configuration
@param port proxy port
@throws SQLException SQL exception
Initialize . @param yamlConfig YAML proxy configuration @param port proxy port @throws SQLException SQL exception
public void init(final YamlProxyConfiguration yamlConfig, final int port) throws SQLException {
        ModeConfiguration modeConfig = null == yamlConfig.getServerConfiguration().getMode()
                ? null : new ModeConfigurationYamlSwapper().swapToObject(yamlConfig.getServerConfiguration().getMode());
        initContext(yamlConfig, modeConfig, port);
        setDatabaseServerInfo();
        initScaling(yamlConfig, modeConfig);
    }
public void init ( final YamlProxyConfiguration yamlConfig , final int port ) throws SQLException { ModeConfiguration modeConfig = null == yamlConfig . getServerConfiguration ( ) . getMode ( ) ? null : new ModeConfigurationYamlSwapper ( ) . swapToObject ( yamlConfig . getServerConfiguration ( ) . getMode ( ) ) ; initContext ( yamlConfig , modeConfig , port ) ; setDatabaseServerInfo ( ) ; initScaling ( yamlConfig , modeConfig ) ; }
Initialize.
Initialize .