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

41 lines
967 B
Java

/*
*
*/
package org.gcube.common.workspacetaskexecutor.shared;
import org.gcube.common.workspacetaskexecutor.shared.exception.ItemNotExecutableException;
/**
* The Interface DoCheckTask.
*
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
* Apr 26, 2018
* @param <T> the generic type
*/
public interface CheckableTask<T extends BaseTaskConfiguration> {
/**
* Check item executable.
*
* @param itemId the item id
* @return the t
* @throws ItemNotExecutableException the item not executable exception
* @throws Exception the exception
*/
T checkItemExecutable(String itemId) throws ItemNotExecutableException, Exception;
/**
* Checks if is item executable.
*
* @param itemId the item id
* @return the boolean
* @throws ItemNotExecutableException the item not executable exception
* @throws Exception the exception
*/
Boolean isItemExecutable(String itemId) throws ItemNotExecutableException, Exception;
}