@Override public final void taskPreempted(Event<Task> taskEvent) { super.taskPreempted(taskEvent); this.getSubmittedTasks().add(taskEvent.getSource()); }
@Override public final void taskFinished(Event<Task> taskEvent) { super.taskFinished(taskEvent); stopRemainingReplicas(taskEvent.getSource()); taskEvent.getSource().finishSourceTask(); }