@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface GridComputeJobBeforeFailover
GridFailoverSpi. In this method job can re-create necessary state that was
cleared, for example, in method with GridComputeJobAfterSend annotation.
This annotation can be applied to methods of GridComputeJob 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 GridComputeJob {
...
@GridComputeJobBeforeFailover
public void onJobBeforeFailover() {
...
}
...
}
Copyright © 2014. All rights reserved.