Address jobOwner = mapReduceService.getLocalAddress();
mapReduceService.registerJobSupervisorCancellation(name, jobId, jobOwner);
JobSupervisor supervisor = mapReduceService.getJobSupervisor(name, jobId);
if (supervisor != null && supervisor.isOwnerNode()) {
Exception exception = new CancellationException("Operation was cancelled by the user");
supervisor.cancelAndNotify(exception);
}
endpoint.sendResponse(Boolean.TRUE, getCallId());
}