use of org.apache.ignite.configuration.AtomicConfiguration in project ignite by apache.
the class GridCachePartitionedAtomicReferenceMultiNodeTest method atomicConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected AtomicConfiguration atomicConfiguration() {
AtomicConfiguration atomicCfg = super.atomicConfiguration();
atomicCfg.setBackups(1);
return atomicCfg;
}
use of org.apache.ignite.configuration.AtomicConfiguration in project ignite by apache.
the class IgniteSequenceInternalCleanupTest method atomicConfiguration.
/**
*/
protected AtomicConfiguration atomicConfiguration() {
AtomicConfiguration cfg = new AtomicConfiguration();
cfg.setCacheMode(PARTITIONED);
cfg.setBackups(1);
cfg.setAtomicSequenceReserveSize(SEQ_RESERVE);
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;
}
use of org.apache.ignite.configuration.AtomicConfiguration in project ignite by apache.
the class GridCachePartitionedAtomicLongLoadTest method getConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
IgniteConfiguration c = super.getConfiguration(igniteInstanceName);
AtomicConfiguration atomicCfg = new AtomicConfiguration();
atomicCfg.setCacheMode(PARTITIONED);
atomicCfg.setBackups(1);
atomicCfg.setAtomicSequenceReserveSize(10);
c.setAtomicConfiguration(atomicCfg);
c.getTransactionConfiguration().setDefaultTxConcurrency(PESSIMISTIC);
c.getTransactionConfiguration().setDefaultTxIsolation(REPEATABLE_READ);
CacheConfiguration cc = defaultCacheConfiguration();
cc.setCacheMode(CacheMode.PARTITIONED);
cc.setRebalanceMode(CacheRebalanceMode.SYNC);
cc.setWriteSynchronizationMode(FULL_SYNC);
LruEvictionPolicy plc = new LruEvictionPolicy();
plc.setMaxSize(1000);
cc.setEvictionPolicy(plc);
cc.setOnheapCacheEnabled(true);
cc.setBackups(1);
cc.setAffinity(new RendezvousAffinityFunction(true));
c.setCacheConfiguration(cc);
return c;
}
Aggregations