Search in sources :

Example 46 with ConnectorConfiguration

use of org.apache.ignite.configuration.ConnectorConfiguration in project ignite by apache.

the class GridQueryCommandHandlerTest method beforeTestsStarted.

/** {@inheritDoc} */
@Override
protected void beforeTestsStarted() throws Exception {
    super.beforeTestsStarted();
    startGrid();
    ConnectorConfiguration connCfg = new ConnectorConfiguration();
    connCfg.setIdleQueryCursorCheckFrequency(1000);
    connCfg.setIdleQueryCursorTimeout(1000);
    grid().configuration().setConnectorConfiguration(connCfg);
}
Also used : ConnectorConfiguration(org.apache.ignite.configuration.ConnectorConfiguration)

Example 47 with ConnectorConfiguration

use of org.apache.ignite.configuration.ConnectorConfiguration in project ignite by apache.

the class CacheJdbcPojoStoreAbstractSelfTest method getConfiguration.

/** {@inheritDoc} */
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
    IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);
    TcpDiscoverySpi disco = new TcpDiscoverySpi();
    disco.setIpFinder(IP_FINDER);
    cfg.setDiscoverySpi(disco);
    cfg.setCacheConfiguration(cacheConfiguration());
    cfg.setMarshaller(marshaller());
    ConnectorConfiguration connCfg = new ConnectorConfiguration();
    cfg.setConnectorConfiguration(connCfg);
    return cfg;
}
Also used : IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) ConnectorConfiguration(org.apache.ignite.configuration.ConnectorConfiguration) TcpDiscoverySpi(org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi)

Example 48 with ConnectorConfiguration

use of org.apache.ignite.configuration.ConnectorConfiguration in project ignite by apache.

the class BinaryConfigurationCustomSerializerSelfTest method getConfiguration.

/** {@inheritDoc} */
@Override
protected IgniteConfiguration getConfiguration(String gridName) throws Exception {
    IgniteConfiguration cfg = super.getConfiguration(gridName);
    cfg.setConnectorConfiguration(new ConnectorConfiguration());
    cfg.setMarshaller(new BinaryMarshaller());
    BinaryConfiguration binaryCfg = new BinaryConfiguration();
    BinaryTypeConfiguration btc = new BinaryTypeConfiguration("org.MyClass");
    btc.setIdMapper(BinaryContext.defaultIdMapper());
    btc.setEnum(false);
    // Set custom serializer that is unknown for Optimized marshaller.
    btc.setSerializer(new MyBinarySerializer());
    binaryCfg.setTypeConfigurations(Collections.singletonList(btc));
    cfg.setBinaryConfiguration(binaryCfg);
    // Set custom consistent ID that unknown for Optimized marshaller.
    cfg.setConsistentId(new MyConsistentId("test"));
    cfg.setCacheConfiguration(new CacheConfiguration("TEST"));
    return cfg;
}
Also used : IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) BinaryConfiguration(org.apache.ignite.configuration.BinaryConfiguration) BinaryTypeConfiguration(org.apache.ignite.binary.BinaryTypeConfiguration) ConnectorConfiguration(org.apache.ignite.configuration.ConnectorConfiguration) CacheConfiguration(org.apache.ignite.configuration.CacheConfiguration)

Aggregations

ConnectorConfiguration (org.apache.ignite.configuration.ConnectorConfiguration)48 IgniteConfiguration (org.apache.ignite.configuration.IgniteConfiguration)44 TcpDiscoverySpi (org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi)36 CacheConfiguration (org.apache.ignite.configuration.CacheConfiguration)10 TcpDiscoveryVmIpFinder (org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder)4 AffinityKey (org.apache.ignite.cache.affinity.AffinityKey)2 GridSslContextFactory (org.apache.ignite.internal.client.ssl.GridSslContextFactory)2 TcpCommunicationSpi (org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi)2 IOException (java.io.IOException)1 SSLContext (javax.net.ssl.SSLContext)1 SSLException (javax.net.ssl.SSLException)1 BinaryTypeConfiguration (org.apache.ignite.binary.BinaryTypeConfiguration)1 QueryEntity (org.apache.ignite.cache.QueryEntity)1 QueryIndex (org.apache.ignite.cache.QueryIndex)1 LruEvictionPolicy (org.apache.ignite.cache.eviction.lru.LruEvictionPolicy)1 BinaryConfiguration (org.apache.ignite.configuration.BinaryConfiguration)1 ConnectorMessageInterceptor (org.apache.ignite.configuration.ConnectorMessageInterceptor)1 MemoryConfiguration (org.apache.ignite.configuration.MemoryConfiguration)1 NearCacheConfiguration (org.apache.ignite.configuration.NearCacheConfiguration)1 OdbcConfiguration (org.apache.ignite.configuration.OdbcConfiguration)1