public interface GridComputeJobMasterLeaveAware
If GridComputeJob concrete class implements this interface then in case when master node leaves topology
during job execution the callback method onMasterNodeLeft(GridComputeTaskSession) 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.
| Modifier and Type | Method and Description |
|---|---|
void |
onMasterNodeLeft(GridComputeTaskSession ses)
A method which is executed in case master node has left topology during job execution.
|
void onMasterNodeLeft(GridComputeTaskSession ses) throws GridException
ses - Task session, can be used for checkpoint saving.GridException - In case of any exception.Copyright © 2014. All rights reserved.