Search in sources :

Example 1 with FifoQueueCollisionSpi

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;
}
Also used : IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) FifoQueueCollisionSpi(org.apache.ignite.spi.collision.fifoqueue.FifoQueueCollisionSpi)

Example 2 with FifoQueueCollisionSpi

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);
}
Also used : GridCollisionManager(org.apache.ignite.internal.managers.collision.GridCollisionManager) FifoQueueCollisionSpi(org.apache.ignite.spi.collision.fifoqueue.FifoQueueCollisionSpi) FifoQueueCollisionSpi(org.apache.ignite.spi.collision.fifoqueue.FifoQueueCollisionSpi) CollisionSpi(org.apache.ignite.spi.collision.CollisionSpi)

Aggregations

FifoQueueCollisionSpi (org.apache.ignite.spi.collision.fifoqueue.FifoQueueCollisionSpi)2 IgniteConfiguration (org.apache.ignite.configuration.IgniteConfiguration)1 GridCollisionManager (org.apache.ignite.internal.managers.collision.GridCollisionManager)1 CollisionSpi (org.apache.ignite.spi.collision.CollisionSpi)1