40 lines
990 B
Java
40 lines
990 B
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.common.workspacetaskexecutor.shared;
|
|
|
|
import org.gcube.common.workspacetaskexecutor.shared.exception.ItemNotExecutableException;
|
|
|
|
|
|
/**
|
|
* The Interface ConfigurableTask.
|
|
*
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
* May 2, 2018
|
|
* @param <I> the generic type
|
|
*/
|
|
public interface ConfigurableTask<I extends BaseTaskConfiguration> {
|
|
|
|
|
|
/**
|
|
* Removes the task configuration.
|
|
*
|
|
* @param config the config
|
|
* @return the boolean
|
|
* @throws ItemNotExecutableException the item not executable exception
|
|
* @throws Exception the exception
|
|
*/
|
|
Boolean removeTaskConfiguration(I config) 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;
|
|
}
|