Search in sources :

Example 11 with StopBuildIndexConsumer

use of org.apache.ignite.internal.processors.cache.index.IndexingTestUtils.StopBuildIndexConsumer in project ignite by apache.

the class AbstractRebuildIndexTest method addStopRebuildIndexConsumer.

/**
 * Registering a {@link StopBuildIndexConsumer} to {@link IndexesRebuildTaskEx#addCacheRowConsumer}.
 *
 * @param n Node.
 * @param cacheName Cache name.
 * @return New instance of {@link StopBuildIndexConsumer}.
 */
protected StopBuildIndexConsumer addStopRebuildIndexConsumer(IgniteEx n, String cacheName) {
    StopBuildIndexConsumer consumer = new StopBuildIndexConsumer(getTestTimeout());
    addCacheRowConsumer(nodeName(n), cacheName, consumer);
    return consumer;
}
Also used : StopBuildIndexConsumer(org.apache.ignite.internal.processors.cache.index.IndexingTestUtils.StopBuildIndexConsumer)

Aggregations

StopBuildIndexConsumer (org.apache.ignite.internal.processors.cache.index.IndexingTestUtils.StopBuildIndexConsumer)11 IgniteEx (org.apache.ignite.internal.IgniteEx)10 Test (org.junit.Test)9 BreakBuildIndexConsumer (org.apache.ignite.internal.processors.cache.index.IndexingTestUtils.BreakBuildIndexConsumer)4 ConcurrentMap (java.util.concurrent.ConcurrentMap)3 ACTIVE (org.apache.ignite.cluster.ClusterState.ACTIVE)3 INACTIVE (org.apache.ignite.cluster.ClusterState.INACTIVE)3 IgniteFutureTimeoutCheckedException (org.apache.ignite.internal.IgniteFutureTimeoutCheckedException)3 IgniteInternalFuture (org.apache.ignite.internal.IgniteInternalFuture)3 GridCacheContext (org.apache.ignite.internal.processors.cache.GridCacheContext)3 IgniteInternalCache (org.apache.ignite.internal.processors.cache.IgniteInternalCache)3 IndexesRebuildTaskEx.prepareBeforeNodeStart (org.apache.ignite.internal.processors.cache.index.IndexesRebuildTaskEx.prepareBeforeNodeStart)3 IndexBuildStatusHolder (org.apache.ignite.internal.processors.query.aware.IndexBuildStatusHolder)3 IndexBuildStatusStorage (org.apache.ignite.internal.processors.query.aware.IndexBuildStatusStorage)3 KEY_PREFIX (org.apache.ignite.internal.processors.query.aware.IndexBuildStatusStorage.KEY_PREFIX)3 ThrowableFunction (org.apache.ignite.internal.util.function.ThrowableFunction)3 GridTestUtils.assertThrows (org.apache.ignite.testframework.GridTestUtils.assertThrows)3 GridTestUtils.deleteCacheGrpDir (org.apache.ignite.testframework.GridTestUtils.deleteCacheGrpDir)3 List (java.util.List)2 SlowdownBuildIndexConsumer (org.apache.ignite.internal.processors.cache.index.IndexingTestUtils.SlowdownBuildIndexConsumer)2