workspace-task-executor-lib.../src/main/java/org/gcube/common/workspacetaskexecutor/ConfigurableTask.java

40 lines
850 B
Java

/**
*
*/
package org.gcube.common.workspacetaskexecutor;
import org.gcube.common.workspacetaskexecutor.shared.ItemNotExecutable;
/**
* The Interface ConfigurableTask.
*
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
* Apr 26, 2018
*/
public interface ConfigurableTask {
/**
* Removes the task config.
*
* @param config the config
* @return the boolean
* @throws ItemNotExecutable the item not executable
* @throws Exception the exception
*/
Boolean removeTaskConfig(TaskConfiguration config) throws ItemNotExecutable, Exception;
/**
* Adds the task config.
*
* @param config the config
* @return the boolean
* @throws ItemNotExecutable the item not executable
* @throws Exception the exception
*/
Boolean addTaskConfig(TaskConfiguration config) throws ItemNotExecutable, Exception;
}