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);
}
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;
}
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;
}
Aggregations