Search in sources :

Example 1 with RebalanceBlockingSPI

use of org.apache.ignite.internal.processors.cache.persistence.db.RebalanceBlockingSPI in project ignite by apache.

the class SysCacheInconsistencyInternalKeyTest method getConfiguration.

/**
 * {@inheritDoc}
 */
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
    IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);
    cfg.setFailureHandler(new StopNodeFailureHandler());
    cfg.setCommunicationSpi(new RebalanceBlockingSPI(SUPPLY_MESSAGE_LATCH, SLOW_REBALANCE_CACHE, SUPPLY_SEND_LATCH));
    return cfg;
}
Also used : IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) RebalanceBlockingSPI(org.apache.ignite.internal.processors.cache.persistence.db.RebalanceBlockingSPI) StopNodeFailureHandler(org.apache.ignite.failure.StopNodeFailureHandler)

Aggregations

IgniteConfiguration (org.apache.ignite.configuration.IgniteConfiguration)1 StopNodeFailureHandler (org.apache.ignite.failure.StopNodeFailureHandler)1 RebalanceBlockingSPI (org.apache.ignite.internal.processors.cache.persistence.db.RebalanceBlockingSPI)1