Search in sources :

Example 16 with GridSpiTestContext

use of org.apache.ignite.testframework.GridSpiTestContext in project ignite by apache.

the class GridAdaptiveLoadBalancingSpiSelfTest method initSpiContext.

/**
 * {@inheritDoc}
 */
@Override
protected GridSpiTestContext initSpiContext() throws Exception {
    GridSpiTestContext ctx = super.initSpiContext();
    ctx.setLocalNode(new GridTestNode(UUID.randomUUID()));
    return ctx;
}
Also used : GridSpiTestContext(org.apache.ignite.testframework.GridSpiTestContext) GridTestNode(org.apache.ignite.testframework.GridTestNode)

Example 17 with GridSpiTestContext

use of org.apache.ignite.testframework.GridSpiTestContext in project ignite by apache.

the class GridRoundRobinLoadBalancingNotPerTaskMultithreadedSelfTest method initSpiContext.

/**
 * {@inheritDoc}
 */
@Override
protected GridSpiTestContext initSpiContext() throws Exception {
    GridSpiTestContext spiCtx = super.initSpiContext();
    spiCtx.createLocalNode();
    spiCtx.createRemoteNodes(10);
    return spiCtx;
}
Also used : GridSpiTestContext(org.apache.ignite.testframework.GridSpiTestContext)

Example 18 with GridSpiTestContext

use of org.apache.ignite.testframework.GridSpiTestContext in project ignite by apache.

the class GridRoundRobinLoadBalancingSpiMultipleNodesSelfTest method initSpiContext.

/**
 * {@inheritDoc}
 */
@Override
protected GridSpiTestContext initSpiContext() throws Exception {
    GridSpiTestContext spiCtx = super.initSpiContext();
    spiCtx.createLocalNode();
    spiCtx.createRemoteNodes(10);
    return spiCtx;
}
Also used : GridSpiTestContext(org.apache.ignite.testframework.GridSpiTestContext)

Example 19 with GridSpiTestContext

use of org.apache.ignite.testframework.GridSpiTestContext in project ignite by apache.

the class GridRoundRobinLoadBalancingSpiNotPerTaskSelfTest method initSpiContext.

/**
 * {@inheritDoc}
 */
@Override
protected GridSpiTestContext initSpiContext() throws Exception {
    GridSpiTestContext spiCtx = super.initSpiContext();
    spiCtx.createLocalNode();
    spiCtx.createRemoteNodes(10);
    return spiCtx;
}
Also used : GridSpiTestContext(org.apache.ignite.testframework.GridSpiTestContext)

Example 20 with GridSpiTestContext

use of org.apache.ignite.testframework.GridSpiTestContext in project ignite by apache.

the class GridRoundRobinLoadBalancingSpiTopologyChangeSelfTest method initSpiContext.

/**
 * {@inheritDoc}
 */
@Override
protected GridSpiTestContext initSpiContext() throws Exception {
    GridSpiTestContext spiCtx = super.initSpiContext();
    spiCtx.createLocalNode();
    spiCtx.createRemoteNodes(10);
    return spiCtx;
}
Also used : GridSpiTestContext(org.apache.ignite.testframework.GridSpiTestContext)

Aggregations

GridSpiTestContext (org.apache.ignite.testframework.GridSpiTestContext)22 GridTestNode (org.apache.ignite.testframework.GridTestNode)17 ClusterNode (org.apache.ignite.cluster.ClusterNode)8 IgniteTestResources (org.apache.ignite.testframework.junits.IgniteTestResources)8 HashMap (java.util.HashMap)7 GridTimeoutProcessor (org.apache.ignite.internal.processors.timeout.GridTimeoutProcessor)6 GridTestKernalContext (org.apache.ignite.testframework.junits.GridTestKernalContext)6 Map (java.util.Map)5 IgniteConfiguration (org.apache.ignite.configuration.IgniteConfiguration)4 IgniteMock (org.apache.ignite.testframework.junits.IgniteMock)4 Message (org.apache.ignite.plugin.extensions.communication.Message)3 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)2 ClusterMetricsSnapshot (org.apache.ignite.internal.ClusterMetricsSnapshot)2 GridTestMessage (org.apache.ignite.spi.communication.GridTestMessage)2 Serializable (java.io.Serializable)1 Collection (java.util.Collection)1 ConcurrentMap (java.util.concurrent.ConcurrentMap)1 IgniteProductVersion.fromString (org.apache.ignite.lang.IgniteProductVersion.fromString)1