use of org.apache.ignite.configuration.SqlConnectorConfiguration in project ignite by apache.
the class ClientConnectorConfigurationValidationSelfTest method testIgnoreSqlWhenClientSet.
/**
* Test SQL connector conversion.
*
* @throws Exception If failed.
*/
@Test
public void testIgnoreSqlWhenClientSet() throws Exception {
int cliPort = ClientConnectorConfiguration.DFLT_PORT - 1;
int sqlPort = ClientConnectorConfiguration.DFLT_PORT - 2;
IgniteConfiguration cfg = baseConfiguration();
cfg.setClientConnectorConfiguration(new ClientConnectorConfiguration().setPort(cliPort));
cfg.setSqlConnectorConfiguration(new SqlConnectorConfiguration().setPort(sqlPort));
Ignition.start(cfg);
checkJdbc(null, cliPort);
}
Aggregations