use of org.apache.ignite.internal.binary.BinaryMarshaller in project ignite by apache.
the class TcpClientDiscoveryMarshallerCheckSelfTest method getConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);
if (testFooter) {
cfg.setMarshaller(new BinaryMarshaller());
TcpDiscoverySpi spi = new TcpDiscoverySpi();
// IGNITE-605, and further tests limitation bypass
spi.setJoinTimeout(-1);
cfg.setDiscoverySpi(spi);
if (igniteInstanceName.endsWith("0")) {
BinaryConfiguration bc = new BinaryConfiguration();
bc.setCompactFooter(false);
cfg.setBinaryConfiguration(bc);
cfg.setClientMode(true);
}
} else {
if (igniteInstanceName.endsWith("0"))
cfg.setMarshaller(new JdkMarshaller());
else {
cfg.setClientMode(true);
cfg.setMarshaller(new BinaryMarshaller());
}
TcpDiscoverySpi spi = new TcpDiscoverySpi().setIpFinder(ipFinder);
cfg.setDiscoverySpi(spi);
}
return cfg;
}
use of org.apache.ignite.internal.binary.BinaryMarshaller in project ignite by apache.
the class ClosureServiceClientsNodesTest method getConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);
cfg.setMarshaller(new BinaryMarshaller());
cfg.setDiscoverySpi(new TcpDiscoverySpi().setIpFinder(ipFinder).setForceServerMode(true));
cfg.setCacheConfiguration();
if (igniteInstanceName.equals(getTestIgniteInstanceName(0)))
cfg.setClientMode(true);
return cfg;
}
use of org.apache.ignite.internal.binary.BinaryMarshaller in project ignite by apache.
the class DynamicIndexAbstractSelfTest method commonConfiguration.
/**
* Create common node configuration.
*
* @param idx Index.
* @return Configuration.
* @throws Exception If failed.
*/
protected IgniteConfiguration commonConfiguration(int idx) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(getTestIgniteInstanceName(idx));
cfg.setDiscoverySpi(new TcpDiscoverySpi().setIpFinder(IP_FINDER));
cfg.setMarshaller(new BinaryMarshaller());
DataStorageConfiguration memCfg = new DataStorageConfiguration().setDefaultDataRegionConfiguration(new DataRegionConfiguration().setMaxSize(128 * 1024 * 1024));
cfg.setDataStorageConfiguration(memCfg);
return optimize(cfg);
}
use of org.apache.ignite.internal.binary.BinaryMarshaller in project ignite by apache.
the class H2DynamicIndexAbstractSelfTest method commonConfiguration.
/**
* Create common node configuration.
*
* @param idx Index.
* @return Configuration.
* @throws Exception If failed.
*/
private IgniteConfiguration commonConfiguration(int idx) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(getTestIgniteInstanceName(idx));
cfg.setMarshaller(new BinaryMarshaller());
return optimize(cfg);
}
use of org.apache.ignite.internal.binary.BinaryMarshaller in project ignite by apache.
the class IgniteSqlKeyValueFieldsTest method getConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected IgniteConfiguration getConfiguration(String gridName) throws Exception {
IgniteConfiguration c = super.getConfiguration(gridName);
TcpDiscoverySpi disco = new TcpDiscoverySpi();
disco.setIpFinder(IP_FINDER);
c.setDiscoverySpi(disco);
c.setMarshaller(new BinaryMarshaller());
List<CacheConfiguration> ccfgs = new ArrayList<>();
CacheConfiguration ccfg = buildCacheConfiguration(gridName);
if (ccfg != null)
ccfgs.add(ccfg);
ccfgs.add(buildCacheConfiguration(CACHE_PERSON_NO_KV));
ccfgs.add(buildCacheConfiguration(CACHE_INT_NO_KV_TYPE));
ccfgs.add(buildCacheConfiguration(CACHE_PERSON));
ccfgs.add(buildCacheConfiguration(CACHE_JOB));
c.setCacheConfiguration(ccfgs.toArray(new CacheConfiguration[ccfgs.size()]));
if (gridName.equals(NODE_CLIENT))
c.setClientMode(true);
return c;
}
Aggregations