use of org.apache.ignite.spi.collision.fifoqueue.FifoQueueCollisionSpi in project ignite by apache.
the class GridTaskJobRejectSelfTest method getConfiguration.
/** {@inheritDoc} */
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);
FifoQueueCollisionSpi collision = new FifoQueueCollisionSpi();
collision.setParallelJobsNumber(1);
cfg.setCollisionSpi(collision);
return cfg;
}
use of org.apache.ignite.spi.collision.fifoqueue.FifoQueueCollisionSpi 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