Search in sources :

Example 6 with SqlConnectorConfiguration

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);
}
Also used : IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) ClientConnectorConfiguration(org.apache.ignite.configuration.ClientConnectorConfiguration) SqlConnectorConfiguration(org.apache.ignite.configuration.SqlConnectorConfiguration) GridCommonAbstractTest(org.apache.ignite.testframework.junits.common.GridCommonAbstractTest) Test(org.junit.Test)

Aggregations

SqlConnectorConfiguration (org.apache.ignite.configuration.SqlConnectorConfiguration)6 Test (org.junit.Test)5 IgniteConfiguration (org.apache.ignite.configuration.IgniteConfiguration)4 GridCommonAbstractTest (org.apache.ignite.testframework.junits.common.GridCommonAbstractTest)4 ClientConnectorConfiguration (org.apache.ignite.configuration.ClientConnectorConfiguration)3 OdbcConfiguration (org.apache.ignite.configuration.OdbcConfiguration)3 AbstractIndexingCommonTest (org.apache.ignite.internal.processors.cache.index.AbstractIndexingCommonTest)1 HostAndPortRange (org.apache.ignite.internal.util.HostAndPortRange)1 Nullable (org.jetbrains.annotations.Nullable)1