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

42 lines
990 B
Java

/**
*
*/
package org.gcube.common.workspacetaskexecutor;
import org.gcube.common.workspacetaskexecutor.shared.exception.ItemNotExecutableException;
/**
* The Interface ConfigurableTask.
*
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
* Apr 26, 2018
* @param <I> the generic type
*/
public interface ConfigurableTask<I> {
/**
* Removes the task configuration.
*
* @param workspaceItemId the workspace item id
* @return the boolean
* @throws ItemNotExecutableException the item not executable exception
* @throws Exception the exception
*/
Boolean removeTaskConfiguration(String workspaceItemId) throws ItemNotExecutableException, Exception;
/**
* Sets the task configuration.
*
* @param config the config
* @return the boolean
* @throws ItemNotExecutableException the item not executable exception
* @throws Exception the exception
*/
Boolean setTaskConfiguration(I config) throws ItemNotExecutableException, Exception;
}