public interface FailoverSpi extends IgniteSpi
Ignite comes with the following built-in failover SPI implementations:
Ignite.configuration()method to check its configuration properties or call other non-SPI methods. Note again that calling methods from this interface on the obtained instance can lead to undefined behavior and explicitly not supported.
|Modifier and Type||Method and Description|
This method is called when method
ClusterNode failover(FailoverContext ctx, List<ClusterNode> top)
ComputeTask.result(org.apache.ignite.compute.ComputeJobResult, List)returns value
ComputeJobResultPolicy.FAILOVERpolicy indicating that the result of job execution must be failed over. Implementation of this method should examine failover context and choose one of the grid nodes from supplied
topologyto retry job execution on it. For best performance it is advised that
FailoverContext.getBalancedNode(List)method is used to select node for execution of failed job.
ctx- Failover context.
top- Collection of all grid nodes within task topology (may include failed node).
nullif new node cannot be picked. If job failover fails (returns
null) the whole task will be failed.