Search in sources :

Example 26 with AtomicConfiguration

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;
}
Also used : AtomicConfiguration(org.apache.ignite.configuration.AtomicConfiguration)

Example 27 with AtomicConfiguration

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;
}
Also used : IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) AtomicConfiguration(org.apache.ignite.configuration.AtomicConfiguration) CacheConfiguration(org.apache.ignite.configuration.CacheConfiguration) TcpDiscoverySpi(org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi)

Example 28 with AtomicConfiguration

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;
}
Also used : AtomicConfiguration(org.apache.ignite.configuration.AtomicConfiguration)

Example 29 with AtomicConfiguration

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;
}
Also used : AtomicConfiguration(org.apache.ignite.configuration.AtomicConfiguration)

Aggregations

AtomicConfiguration (org.apache.ignite.configuration.AtomicConfiguration)29 IgniteConfiguration (org.apache.ignite.configuration.IgniteConfiguration)10 TcpDiscoverySpi (org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi)9 Ignite (org.apache.ignite.Ignite)6 CacheConfiguration (org.apache.ignite.configuration.CacheConfiguration)5 TcpCommunicationSpi (org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi)5 IgniteAtomicSequence (org.apache.ignite.IgniteAtomicSequence)3 HashMap (java.util.HashMap)2 LinkedHashMap (java.util.LinkedHashMap)2 IgniteAtomicLong (org.apache.ignite.IgniteAtomicLong)2 BinaryBasicNameMapper (org.apache.ignite.binary.BinaryBasicNameMapper)2 LruEvictionPolicy (org.apache.ignite.cache.eviction.lru.LruEvictionPolicy)2 BinaryConfiguration (org.apache.ignite.configuration.BinaryConfiguration)2 TransactionConfiguration (org.apache.ignite.configuration.TransactionConfiguration)2 PlatformDotNetBinaryConfiguration (org.apache.ignite.platform.dotnet.PlatformDotNetBinaryConfiguration)2 NoopEventStorageSpi (org.apache.ignite.spi.eventstorage.NoopEventStorageSpi)2 MemoryEventStorageSpi (org.apache.ignite.spi.eventstorage.memory.MemoryEventStorageSpi)2 Serializable (java.io.Serializable)1 Map (java.util.Map)1 IgniteException (org.apache.ignite.IgniteException)1