use of org.apache.ignite.configuration.ClientConnectorConfiguration in project ignite by apache.
the class ClientConnectorConfigurationValidationSelfTest method testIgnoreSqlWhenClientSet.
/**
* Test SQL connector conversion.
*
* @throws Exception If failed.
*/
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);
}
use of org.apache.ignite.configuration.ClientConnectorConfiguration in project ignite by apache.
the class ClientConnectorConfigurationValidationSelfTest method testDefault.
/**
* Test host.
*
* @throws Exception If failed.
*/
public void testDefault() throws Exception {
check(new ClientConnectorConfiguration(), true);
checkJdbc(null, ClientConnectorConfiguration.DFLT_PORT);
}
use of org.apache.ignite.configuration.ClientConnectorConfiguration in project ignite by apache.
the class JdbcThinSelectAfterAlterTable method getConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);
cfg.setCacheConfiguration(cacheConfiguration(DEFAULT_CACHE_NAME));
TcpDiscoverySpi disco = new TcpDiscoverySpi();
disco.setIpFinder(IP_FINDER);
cfg.setDiscoverySpi(disco);
cfg.setClientConnectorConfiguration(new ClientConnectorConfiguration().setPort(cliPort++));
return cfg;
}
Aggregations