Search in sources :

Example 11 with CacheMode

use of org.apache.ignite.cache.CacheMode in project ignite by apache.

the class JettyRestProcessorAbstractSelfTest method testTypedGet.

/**
 * @throws Exception If failed.
 */
@Test
public void testTypedGet() throws Exception {
    // Test boolean type.
    IgniteCache<Boolean, Boolean> cBool = typedCache();
    cBool.put(true, false);
    cBool.put(false, true);
    getTypedValue("boolean", "true", "false");
    getTypedValue("java.lang.Boolean", "false", "true");
    // Test byte type.
    IgniteCache<Byte, Byte> cByte = typedCache();
    cByte.put((byte) 77, (byte) 55);
    cByte.put((byte) -88, (byte) -10);
    getTypedValue("byte", "77", "55");
    getTypedValue("java.lang.Byte", "-88", "-10");
    // Test short type.
    IgniteCache<Short, Short> cShort = typedCache();
    cShort.put((short) 2222, (short) 3333);
    cShort.put((short) -11111, (short) -12222);
    getTypedValue("short", "2222", "3333");
    getTypedValue("java.lang.Short", "-11111", "-12222");
    // Test integer type.
    IgniteCache<Integer, Integer> cInt = typedCache();
    cInt.put(65555, 128256);
    cInt.put(74555, 200000);
    cInt.put(-200, -100000);
    getTypedValue("int", "65555", "128256");
    getTypedValue("Integer", "74555", "200000");
    getTypedValue("java.lang.Integer", "-200", "-100000");
    // Test long type.
    IgniteCache<Long, Long> cLong = typedCache();
    cLong.put(3333333L, 4444444L);
    cLong.put(-3333333L, -4444444L);
    getTypedValue("long", "3333333", "4444444");
    getTypedValue("java.lang.Long", "-3333333", "-4444444");
    // Test float type.
    IgniteCache<Float, Float> cFloat = typedCache();
    cFloat.put(11.5f, 21.5f);
    cFloat.put(-71.5f, -81.5f);
    getTypedValue("float", "11.5", "21.5");
    getTypedValue("java.lang.Float", "-71.5", "-81.5");
    // Test double type.
    IgniteCache<Double, Double> cDouble = typedCache();
    cDouble.put(58.5d, 758.5d);
    cDouble.put(-1558.5d, -2558.5d);
    getTypedValue("double", "58.5", "758.5");
    getTypedValue("java.lang.Double", "-1558.5", "-2558.5");
    // Test date type.
    IgniteCache<Date, Date> cDate = typedCache();
    cDate.put(Date.valueOf("2018-02-18"), Date.valueOf("2017-01-01"));
    cDate.put(Date.valueOf("2018-01-01"), Date.valueOf("2017-02-02"));
    getTypedValue("Date", "2018-02-18", "2017-01-01");
    getTypedValue("java.sql.Date", "2018-01-01", "2017-02-02");
    // Test time type.
    IgniteCache<Time, Time> cTime = typedCache();
    cTime.put(Time.valueOf("01:01:01"), Time.valueOf("02:02:02"));
    cTime.put(Time.valueOf("03:03:03"), Time.valueOf("04:04:04"));
    getTypedValue("Time", "01:01:01", "02:02:02");
    getTypedValue("java.sql.Time", "03:03:03", "04:04:04");
    // Test timestamp type.
    IgniteCache<Timestamp, String> cTimestamp = typedCache();
    cTimestamp.put(Timestamp.valueOf("2018-02-18 01:01:01"), "test1");
    cTimestamp.put(Timestamp.valueOf("2018-01-01 01:01:01"), "test2");
    getTypedValue("Timestamp", "2018-02-18 01:01:01", "test1");
    getTypedValue("java.sql.timestamp", "2018-01-01 01:01:01", "test2");
    // Test UUID type.
    IgniteCache<UUID, UUID> cUUID = typedCache();
    UUID k1 = UUID.fromString("121f5ae8-148d-11e8-b642-0ed5f89f718b");
    UUID v1 = UUID.fromString("64c6c225-b31c-4000-b136-ef14562ac785");
    cUUID.put(k1, v1);
    UUID k2 = UUID.randomUUID();
    UUID v2 = UUID.randomUUID();
    cUUID.put(k2, v2);
    getTypedValue("UUID", k1.toString(), v1.toString());
    getTypedValue("java.util.UUID", k2.toString(), v2.toString());
    // Test IgniteUuid type.
    IgniteCache<IgniteUuid, IgniteUuid> cIgniteUUID = typedCache();
    IgniteUuid ik1 = IgniteUuid.randomUuid();
    IgniteUuid iv1 = IgniteUuid.randomUuid();
    cIgniteUUID.put(ik1, iv1);
    IgniteUuid ik2 = IgniteUuid.randomUuid();
    IgniteUuid iv2 = IgniteUuid.randomUuid();
    cIgniteUUID.put(ik2, iv2);
    getTypedValue("IgniteUuid", ik1.toString(), iv1.toString());
    getTypedValue("org.apache.ignite.lang.IgniteUuid", ik2.toString(), iv2.toString());
    // Test tuple.
    IgniteCache<Integer, T2<Integer, String>> cTuple = typedCache();
    T2<Integer, String> tup = new T2<>(1, "test");
    cTuple.put(555, tup);
    getTypedValue("int", "555", JSON_MAPPER.writeValueAsString(tup));
    // Test enum.
    IgniteCache<Integer, CacheMode> cEnum = typedCache();
    cEnum.put(888, PARTITIONED);
    getTypedValue("int", "888", PARTITIONED.toString());
}
Also used : Time(java.sql.Time) CacheMode(org.apache.ignite.cache.CacheMode) Timestamp(java.sql.Timestamp) IgniteUuid(org.apache.ignite.lang.IgniteUuid) UUID(java.util.UUID) T2(org.apache.ignite.internal.util.typedef.T2) Date(java.sql.Date) Test(org.junit.Test)

Example 12 with CacheMode

use of org.apache.ignite.cache.CacheMode in project ignite by apache.

the class ScanQueriesTopologyMappingTest method checkQueryWithNodeFilter.

/**
 */
private void checkQueryWithNodeFilter(CacheMode cacheMode) throws Exception {
    IgniteEx ign0 = startGrid(0);
    String name0 = ign0.name();
    IgniteCache<Object, Object> cache0 = ign0.createCache(new CacheConfiguration<>(GridAbstractTest.DEFAULT_CACHE_NAME).setCacheMode(cacheMode).setNodeFilter(node -> name0.equals(node.attribute(ATTR_IGNITE_INSTANCE_NAME))));
    cache0.put(1, 2);
    startGrid(1);
    client = true;
    startGrid(10);
    int part = ign0.affinity(DEFAULT_CACHE_NAME).partition(1);
    for (int i = 0; i < 100; i++) {
        for (Ignite ign : G.allGrids()) {
            IgniteCache<Object, Object> cache = ign.cache(GridAbstractTest.DEFAULT_CACHE_NAME);
            List<Cache.Entry<Object, Object>> res = cache.query(new ScanQuery<>()).getAll();
            assertEquals(1, res.size());
            assertEquals(1, res.get(0).getKey());
            assertEquals(2, res.get(0).getValue());
            res = new ArrayList<>();
            for (Cache.Entry<Object, Object> entry : cache) {
                res.add(entry);
            }
            assertEquals(1, res.size());
            assertEquals(1, res.get(0).getKey());
            assertEquals(2, res.get(0).getValue());
            res = cache.query(new ScanQuery<>(part)).getAll();
            assertEquals(1, res.size());
            assertEquals(1, res.get(0).getKey());
            assertEquals(2, res.get(0).getValue());
        }
        ScanQuery<Object, Object> qry = new ScanQuery<>().setLocal(true);
        {
            List<Cache.Entry<Object, Object>> res0 = grid(0).cache(GridAbstractTest.DEFAULT_CACHE_NAME).query(qry).getAll();
            assertEquals(1, res0.size());
            assertEquals(1, res0.get(0).getKey());
            assertEquals(2, res0.get(0).getValue());
        }
        {
            List<Cache.Entry<Object, Object>> res1 = grid(1).cache(GridAbstractTest.DEFAULT_CACHE_NAME).query(qry).getAll();
            assertTrue(res1.isEmpty());
        }
        {
            List<Cache.Entry<Object, Object>> res1 = grid(10).cache(GridAbstractTest.DEFAULT_CACHE_NAME).query(qry).getAll();
            assertTrue(res1.isEmpty());
        }
    }
}
Also used : G(org.apache.ignite.internal.util.typedef.G) GridAbstractTest(org.apache.ignite.testframework.junits.GridAbstractTest) IgniteBiPredicate(org.apache.ignite.lang.IgniteBiPredicate) GridCommonAbstractTest(org.apache.ignite.testframework.junits.common.GridCommonAbstractTest) IgniteEx(org.apache.ignite.internal.IgniteEx) Test(org.junit.Test) Ignite(org.apache.ignite.Ignite) GridDhtPartitionSupplyMessage(org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionSupplyMessage) IgniteCache(org.apache.ignite.IgniteCache) ATTR_IGNITE_INSTANCE_NAME(org.apache.ignite.internal.IgniteNodeAttributes.ATTR_IGNITE_INSTANCE_NAME) ArrayList(java.util.ArrayList) List(java.util.List) IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) ClusterNode(org.apache.ignite.cluster.ClusterNode) CacheConfiguration(org.apache.ignite.configuration.CacheConfiguration) Cache(javax.cache.Cache) Message(org.apache.ignite.plugin.extensions.communication.Message) TestRecordingCommunicationSpi(org.apache.ignite.internal.TestRecordingCommunicationSpi) ScanQuery(org.apache.ignite.cache.query.ScanQuery) CacheMode(org.apache.ignite.cache.CacheMode) ScanQuery(org.apache.ignite.cache.query.ScanQuery) IgniteEx(org.apache.ignite.internal.IgniteEx) Ignite(org.apache.ignite.Ignite) ArrayList(java.util.ArrayList) List(java.util.List) IgniteCache(org.apache.ignite.IgniteCache) Cache(javax.cache.Cache)

Example 13 with CacheMode

use of org.apache.ignite.cache.CacheMode in project ignite by apache.

the class IgniteDataStructuresTestUtils method getAtomicConfigurations.

/**
 * @return All variations of configurations according to backups and cache mode.
 */
public static Map<String, AtomicConfiguration> getAtomicConfigurations() {
    Map<String, AtomicConfiguration> configs = new HashMap<>();
    for (int backups : Arrays.asList(0, 1)) {
        for (CacheMode cacheMode : CacheMode.values()) {
            if (cacheMode == CacheMode.LOCAL) {
                // TODO: https://issues.apache.org/jira/browse/IGNITE-13076
                continue;
            }
            AtomicConfiguration cfg = new AtomicConfiguration().setBackups(backups).setCacheMode(cacheMode).setGroupName(cacheMode + "-grp-" + backups);
            AtomicConfiguration old = configs.put("" + backups + cacheMode, cfg);
            assert old == null : old;
        }
    }
    return configs;
}
Also used : HashMap(java.util.HashMap) CacheMode(org.apache.ignite.cache.CacheMode) AtomicConfiguration(org.apache.ignite.configuration.AtomicConfiguration)

Example 14 with CacheMode

use of org.apache.ignite.cache.CacheMode in project ignite by apache.

the class CacheBlockOnReadAbstractTest method testUpdateBaselineTopologyTransactionalReplicated.

/**
 * @throws Exception If failed.
 */
@Params(timeout = 5000L, atomicityMode = TRANSACTIONAL, cacheMode = REPLICATED)
@Test
public void testUpdateBaselineTopologyTransactionalReplicated() throws Exception {
    doTest(asMessagePredicate(discoEvt -> {
        if (discoEvt instanceof DiscoveryCustomEvent) {
            DiscoveryCustomEvent discoCustomEvt = (DiscoveryCustomEvent) discoEvt;
            DiscoveryCustomMessage customMsg = discoCustomEvt.customMessage();
            return customMsg instanceof ChangeGlobalStateMessage;
        }
        return false;
    }), () -> {
        startNodesInClientMode(false);
        IgniteEx ignite = startGrid(UUID.randomUUID().toString());
        baseline.get(0).cluster().setBaselineTopology(baseline.get(0).context().discovery().topologyVersion());
        baseline.add(ignite);
    });
}
Also used : CacheAtomicityMode(org.apache.ignite.cache.CacheAtomicityMode) IgniteInternalFuture(org.apache.ignite.internal.IgniteInternalFuture) DiscoveryCustomEvent(org.apache.ignite.internal.events.DiscoveryCustomEvent) Arrays(java.util.Arrays) TcpDiscoveryNodeAddFinishedMessage(org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryNodeAddFinishedMessage) IgniteEx(org.apache.ignite.internal.IgniteEx) RendezvousAffinityFunction(org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) X(org.apache.ignite.internal.util.typedef.X) PARTITIONED(org.apache.ignite.cache.CacheMode.PARTITIONED) TcpDiscoveryNodeLeftMessage(org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryNodeLeftMessage) GridCommonAbstractTest(org.apache.ignite.testframework.junits.common.GridCommonAbstractTest) EventType(org.apache.ignite.events.EventType) Predicate(java.util.function.Predicate) TestTcpDiscoverySpi(org.apache.ignite.spi.discovery.tcp.TestTcpDiscoverySpi) Collection(java.util.Collection) IgniteCheckedException(org.apache.ignite.IgniteCheckedException) IgniteException(org.apache.ignite.IgniteException) Set(java.util.Set) UUID(java.util.UUID) TcpDiscoveryAbstractMessage(org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryAbstractMessage) IgniteCache(org.apache.ignite.IgniteCache) GridTestUtils(org.apache.ignite.testframework.GridTestUtils) Objects(java.util.Objects) CountDownLatch(java.util.concurrent.CountDownLatch) ExchangeActions(org.apache.ignite.internal.processors.cache.ExchangeActions) List(java.util.List) IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) IgniteFutureTimeoutCheckedException(org.apache.ignite.internal.IgniteFutureTimeoutCheckedException) Message(org.apache.ignite.plugin.extensions.communication.Message) RunnableX(org.apache.ignite.testframework.GridTestUtils.RunnableX) TestRecordingCommunicationSpi(org.apache.ignite.internal.TestRecordingCommunicationSpi) NotNull(org.jetbrains.annotations.NotNull) CopyOnWriteArrayList(java.util.concurrent.CopyOnWriteArrayList) TcpDiscoveryIpFinder(org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder) DiscoveryEvent(org.apache.ignite.events.DiscoveryEvent) IgniteBiPredicate(org.apache.ignite.lang.IgniteBiPredicate) U(org.apache.ignite.internal.util.typedef.internal.U) Retention(java.lang.annotation.Retention) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) ClusterNode(org.apache.ignite.cluster.ClusterNode) DiscoveryCustomMessage(org.apache.ignite.internal.managers.discovery.DiscoveryCustomMessage) BiConsumer(java.util.function.BiConsumer) IgniteInterruptedException(org.apache.ignite.IgniteInterruptedException) DataStorageConfiguration(org.apache.ignite.configuration.DataStorageConfiguration) IgniteInterruptedCheckedException(org.apache.ignite.internal.IgniteInterruptedCheckedException) CacheActionData(org.apache.ignite.internal.processors.cache.ExchangeActions.CacheActionData) TcpDiscoveryVmIpFinder(org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder) ClusterTopologyCheckedException(org.apache.ignite.internal.cluster.ClusterTopologyCheckedException) Target(java.lang.annotation.Target) Test(org.junit.Test) ElementType(java.lang.annotation.ElementType) TRANSACTIONAL(org.apache.ignite.cache.CacheAtomicityMode.TRANSACTIONAL) REPLICATED(org.apache.ignite.cache.CacheMode.REPLICATED) TimeUnit(java.util.concurrent.TimeUnit) AtomicLong(java.util.concurrent.atomic.AtomicLong) ChangeGlobalStateMessage(org.apache.ignite.internal.processors.cluster.ChangeGlobalStateMessage) CacheConfiguration(org.apache.ignite.configuration.CacheConfiguration) GridDhtPartitionsFullMessage(org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsFullMessage) IgniteDataStreamer(org.apache.ignite.IgniteDataStreamer) ATOMIC(org.apache.ignite.cache.CacheAtomicityMode.ATOMIC) GridDhtPartitionExchangeId(org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionExchangeId) Collections(java.util.Collections) DataRegionConfiguration(org.apache.ignite.configuration.DataRegionConfiguration) RetentionPolicy(java.lang.annotation.RetentionPolicy) CacheMode(org.apache.ignite.cache.CacheMode) DynamicCacheChangeBatch(org.apache.ignite.internal.processors.cache.DynamicCacheChangeBatch) IgniteEx(org.apache.ignite.internal.IgniteEx) ChangeGlobalStateMessage(org.apache.ignite.internal.processors.cluster.ChangeGlobalStateMessage) DiscoveryCustomEvent(org.apache.ignite.internal.events.DiscoveryCustomEvent) DiscoveryCustomMessage(org.apache.ignite.internal.managers.discovery.DiscoveryCustomMessage) GridCommonAbstractTest(org.apache.ignite.testframework.junits.common.GridCommonAbstractTest) Test(org.junit.Test)

Example 15 with CacheMode

use of org.apache.ignite.cache.CacheMode in project ignite by apache.

the class CacheBlockOnReadAbstractTest method testRestartBaselineTransactionalReplicated.

/**
 * @throws Exception If failed.
 */
@Params(baseline = 4, atomicityMode = TRANSACTIONAL, cacheMode = REPLICATED)
@Test
public void testRestartBaselineTransactionalReplicated() throws Exception {
    doTest(asMessagePredicate(discoEvt -> discoEvt.type() == EventType.EVT_NODE_JOINED), () -> {
        IgniteEx node = baseline.get(baseline.size() - 1);
        TestRecordingCommunicationSpi.spi(node).stopBlock();
        stopGrid(node.name());
        for (int i = 0; i < baselineServersCount() - 2; i++) cntFinishedReadOperations.countDown();
        startGrid(node.name());
    });
}
Also used : CacheAtomicityMode(org.apache.ignite.cache.CacheAtomicityMode) IgniteInternalFuture(org.apache.ignite.internal.IgniteInternalFuture) DiscoveryCustomEvent(org.apache.ignite.internal.events.DiscoveryCustomEvent) Arrays(java.util.Arrays) TcpDiscoveryNodeAddFinishedMessage(org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryNodeAddFinishedMessage) IgniteEx(org.apache.ignite.internal.IgniteEx) RendezvousAffinityFunction(org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) X(org.apache.ignite.internal.util.typedef.X) PARTITIONED(org.apache.ignite.cache.CacheMode.PARTITIONED) TcpDiscoveryNodeLeftMessage(org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryNodeLeftMessage) GridCommonAbstractTest(org.apache.ignite.testframework.junits.common.GridCommonAbstractTest) EventType(org.apache.ignite.events.EventType) Predicate(java.util.function.Predicate) TestTcpDiscoverySpi(org.apache.ignite.spi.discovery.tcp.TestTcpDiscoverySpi) Collection(java.util.Collection) IgniteCheckedException(org.apache.ignite.IgniteCheckedException) IgniteException(org.apache.ignite.IgniteException) Set(java.util.Set) UUID(java.util.UUID) TcpDiscoveryAbstractMessage(org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryAbstractMessage) IgniteCache(org.apache.ignite.IgniteCache) GridTestUtils(org.apache.ignite.testframework.GridTestUtils) Objects(java.util.Objects) CountDownLatch(java.util.concurrent.CountDownLatch) ExchangeActions(org.apache.ignite.internal.processors.cache.ExchangeActions) List(java.util.List) IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) IgniteFutureTimeoutCheckedException(org.apache.ignite.internal.IgniteFutureTimeoutCheckedException) Message(org.apache.ignite.plugin.extensions.communication.Message) RunnableX(org.apache.ignite.testframework.GridTestUtils.RunnableX) TestRecordingCommunicationSpi(org.apache.ignite.internal.TestRecordingCommunicationSpi) NotNull(org.jetbrains.annotations.NotNull) CopyOnWriteArrayList(java.util.concurrent.CopyOnWriteArrayList) TcpDiscoveryIpFinder(org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder) DiscoveryEvent(org.apache.ignite.events.DiscoveryEvent) IgniteBiPredicate(org.apache.ignite.lang.IgniteBiPredicate) U(org.apache.ignite.internal.util.typedef.internal.U) Retention(java.lang.annotation.Retention) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) ClusterNode(org.apache.ignite.cluster.ClusterNode) DiscoveryCustomMessage(org.apache.ignite.internal.managers.discovery.DiscoveryCustomMessage) BiConsumer(java.util.function.BiConsumer) IgniteInterruptedException(org.apache.ignite.IgniteInterruptedException) DataStorageConfiguration(org.apache.ignite.configuration.DataStorageConfiguration) IgniteInterruptedCheckedException(org.apache.ignite.internal.IgniteInterruptedCheckedException) CacheActionData(org.apache.ignite.internal.processors.cache.ExchangeActions.CacheActionData) TcpDiscoveryVmIpFinder(org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder) ClusterTopologyCheckedException(org.apache.ignite.internal.cluster.ClusterTopologyCheckedException) Target(java.lang.annotation.Target) Test(org.junit.Test) ElementType(java.lang.annotation.ElementType) TRANSACTIONAL(org.apache.ignite.cache.CacheAtomicityMode.TRANSACTIONAL) REPLICATED(org.apache.ignite.cache.CacheMode.REPLICATED) TimeUnit(java.util.concurrent.TimeUnit) AtomicLong(java.util.concurrent.atomic.AtomicLong) ChangeGlobalStateMessage(org.apache.ignite.internal.processors.cluster.ChangeGlobalStateMessage) CacheConfiguration(org.apache.ignite.configuration.CacheConfiguration) GridDhtPartitionsFullMessage(org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsFullMessage) IgniteDataStreamer(org.apache.ignite.IgniteDataStreamer) ATOMIC(org.apache.ignite.cache.CacheAtomicityMode.ATOMIC) GridDhtPartitionExchangeId(org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionExchangeId) Collections(java.util.Collections) DataRegionConfiguration(org.apache.ignite.configuration.DataRegionConfiguration) RetentionPolicy(java.lang.annotation.RetentionPolicy) CacheMode(org.apache.ignite.cache.CacheMode) DynamicCacheChangeBatch(org.apache.ignite.internal.processors.cache.DynamicCacheChangeBatch) IgniteEx(org.apache.ignite.internal.IgniteEx) GridCommonAbstractTest(org.apache.ignite.testframework.junits.common.GridCommonAbstractTest) Test(org.junit.Test)

Aggregations

CacheMode (org.apache.ignite.cache.CacheMode)20 ArrayList (java.util.ArrayList)10 Test (org.junit.Test)10 CacheAtomicityMode (org.apache.ignite.cache.CacheAtomicityMode)9 HashSet (java.util.HashSet)8 ClusterNode (org.apache.ignite.cluster.ClusterNode)8 CacheConfiguration (org.apache.ignite.configuration.CacheConfiguration)7 List (java.util.List)6 IgniteCache (org.apache.ignite.IgniteCache)6 IgniteEx (org.apache.ignite.internal.IgniteEx)6 TestRecordingCommunicationSpi (org.apache.ignite.internal.TestRecordingCommunicationSpi)6 IgniteBiPredicate (org.apache.ignite.lang.IgniteBiPredicate)6 Message (org.apache.ignite.plugin.extensions.communication.Message)6 Collection (java.util.Collection)5 CountDownLatch (java.util.concurrent.CountDownLatch)5 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)5 IgniteCheckedException (org.apache.ignite.IgniteCheckedException)5 U (org.apache.ignite.internal.util.typedef.internal.U)5 GridTestUtils (org.apache.ignite.testframework.GridTestUtils)5 HashMap (java.util.HashMap)4