use of org.apache.ignite.spi.collision.CollisionSpi in project ignite by apache.
the class IgniteCacheLockPartitionOnAffinityRunWithCollisionSpiTest method getConfiguration.
/** {@inheritDoc} */
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);
CollisionSpi colSpi = new AlwaysCancelCollisionSpi();
cfg.setCollisionSpi(colSpi);
return cfg;
}
use of org.apache.ignite.spi.collision.CollisionSpi in project ignite by apache.
the class GridManagerStopSelfTest method testStopCollisionManager.
/**
* @throws Exception If failed.
*/
public void testStopCollisionManager() throws Exception {
CollisionSpi spi = new FifoQueueCollisionSpi();
injectLogger(spi);
ctx.config().setCollisionSpi(spi);
GridCollisionManager mgr = new GridCollisionManager(ctx);
mgr.stop(true);
}
Aggregations