Package org.apache.ignite.compute
Interface ComputeJobMasterLeaveAware
-
public interface ComputeJobMasterLeaveAwareAnnotation for handling master node leave during job execution.If
ComputeJobconcrete class implements this interface then in case when master node leaves topology during job execution the callback methodonMasterNodeLeft(ComputeTaskSession)will be executed.Implementing this interface gives you ability to preserve job execution result or its intermediate state which could be reused later. E.g. you can save job execution result to the database or as a checkpoint and reuse it when failed task is being executed again thus avoiding job execution from scratch.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonMasterNodeLeft(ComputeTaskSession ses)A method which is executed in case master node has left topology during job execution.
-
-
-
Method Detail
-
onMasterNodeLeft
void onMasterNodeLeft(ComputeTaskSession ses) throws IgniteException
A method which is executed in case master node has left topology during job execution.- Parameters:
ses- Task session, can be used for checkpoint saving.- Throws:
IgniteException- In case of any exception.
-
-