@Override public void onMasterNodeLeft(GridComputeTaskSession ses) throws GridException { ((GridComputeJobMasterLeaveAware)job).onMasterNodeLeft(ses); } };
@Override public void onMasterNodeLeft(GridComputeTaskSession ses) throws GridException { ((GridComputeJobMasterLeaveAware)c).onMasterNodeLeft(ses); } };
@Override public void onMasterNodeLeft(GridComputeTaskSession ses) throws GridException { ((GridComputeJobMasterLeaveAware)c).onMasterNodeLeft(ses); } };
@Override public void onMasterNodeLeft(GridComputeTaskSession ses) throws GridException { ((GridComputeJobMasterLeaveAware)r).onMasterNodeLeft(ses); } };
@Override public void onMasterNodeLeft(GridComputeTaskSession ses) throws GridException { ((GridComputeJobMasterLeaveAware)r).onMasterNodeLeft(ses); } };
/** * If the job implements {@link GridComputeJobMasterLeaveAware#onMasterNodeLeft} interface then invoke * {@link GridComputeJobMasterLeaveAware#onMasterNodeLeft(GridComputeTaskSession)} method. * * @return {@code True} if master leave has been handled (either by this call or before). */ boolean onMasterNodeLeft() { if (job instanceof GridComputeJobMasterLeaveAware) { if (masterLeaveGuard.compareAndSet(false, true)) { try { ((GridComputeJobMasterLeaveAware)job).onMasterNodeLeft(ses.session()); if (log.isDebugEnabled()) log.debug("Successfully executed GridComputeJobMasterLeaveAware.onMasterNodeLeft() callback " + "[nodeId=" + taskNode.id() + ", jobId=" + ses.getJobId() + ", job=" + job + ']'); } catch (GridException e) { U.error(log, "Failed to execute GridComputeJobMasterLeaveAware.onMasterNodeLeft() callback " + "[nodeId=" + taskNode.id() + ", jobId=" + ses.getJobId() + ", job=" + job + ']', e); } } return true; } return false; }