@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface ComputeJobBeforeFailover
FailoverSpi. In this method job can re-create necessary state that was
cleared, for example, in method with ComputeJobAfterSend annotation.
This annotation can be applied to methods of ComputeJob instances only. It is
invoked on the caller node after remote execution has failed and before the
job gets failed over to another node.
Example:
public class MyGridJob implements ComputeJob {
...
@GridComputeJobBeforeFailover
public void onJobBeforeFailover() {
...
}
...
}
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.11 Release Date : April 8 2016