use of org.apache.ignite.configuration.AtomicConfiguration in project ignite by apache.
the class GridCachePartitionedAtomicStampedApiSelfTest method atomicConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected AtomicConfiguration atomicConfiguration() {
AtomicConfiguration cfg = super.atomicConfiguration();
cfg.setBackups(1);
return cfg;
}
use of org.apache.ignite.configuration.AtomicConfiguration in project ignite by apache.
the class GridCachePartitionedNodeRestartTxSelfTest method getConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);
TcpDiscoverySpi spi = new TcpDiscoverySpi();
spi.setIpFinder(ipFinder);
cfg.setDiscoverySpi(spi);
CacheConfiguration cacheCfg = defaultCacheConfiguration();
cacheCfg.setCacheMode(PARTITIONED);
cacheCfg.setWriteSynchronizationMode(FULL_SYNC);
cacheCfg.setAtomicityMode(TRANSACTIONAL);
cacheCfg.setRebalanceMode(SYNC);
cacheCfg.setBackups(1);
cfg.setCacheConfiguration(cacheCfg);
AtomicConfiguration atomicCfg = new AtomicConfiguration();
atomicCfg.setCacheMode(PARTITIONED);
atomicCfg.setGroupName("testGroup");
atomicCfg.setBackups(1);
cfg.setAtomicConfiguration(atomicCfg);
return cfg;
}
use of org.apache.ignite.configuration.AtomicConfiguration in project ignite by apache.
the class GridCacheReplicatedSequenceMultiNodeSelfTest method atomicConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected AtomicConfiguration atomicConfiguration() {
AtomicConfiguration atomicCfg = super.atomicConfiguration();
atomicCfg.setAtomicSequenceReserveSize(BATCH_SIZE);
return atomicCfg;
}
use of org.apache.ignite.configuration.AtomicConfiguration in project ignite by apache.
the class GridCachePartitionedSequenceApiSelfTest method atomicConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected AtomicConfiguration atomicConfiguration() {
AtomicConfiguration atomicCfg = super.atomicConfiguration();
atomicCfg.setBackups(1);
return atomicCfg;
}
Aggregations