use of org.apache.ignite.testframework.GridSpiTestContext in project ignite by apache.
the class GridJobStealingFailoverSpiSelfTest method initSpiContext.
/** {@inheritDoc} */
@Override
protected GridSpiTestContext initSpiContext() throws Exception {
GridSpiTestContext ctx = super.initSpiContext();
GridTestNode loc = new GridTestNode(UUID.randomUUID());
addSpiDependency(loc);
ctx.setLocalNode(loc);
GridTestNode rmt = new GridTestNode(UUID.randomUUID());
ctx.addNode(rmt);
addSpiDependency(rmt);
return ctx;
}
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;
}
Aggregations