/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package se.kth.karamel.backend.machines; import se.kth.karamel.backend.running.model.tasks.Task; import se.kth.karamel.common.exception.KaramelException; /** * Submitter of tasks to machines that being called by DagTask. * * @author kamal */ public interface TaskSubmitter { public void prepareToStart(Task task) throws KaramelException; public void submitTask(Task task) throws KaramelException; public void killMe(Task task) throws KaramelException; public void retryMe(Task task) throws KaramelException; public void skipMe(Task task) throws KaramelException; public void terminate(Task task) throws KaramelException; }