2018-04-26 12:01:20 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2018-05-02 16:07:12 +02:00
|
|
|
package org.gcube.common.workspacetaskexecutor.shared;
|
2018-04-26 12:01:20 +02:00
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
2018-05-02 16:07:12 +02:00
|
|
|
|
2018-04-26 12:01:20 +02:00
|
|
|
/**
|
2018-05-02 16:07:12 +02:00
|
|
|
* The Interface BaseTaskConfiguration.
|
2018-04-26 12:01:20 +02:00
|
|
|
*
|
|
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
2018-05-02 16:07:12 +02:00
|
|
|
* May 2, 2018
|
2018-04-26 12:01:20 +02:00
|
|
|
*/
|
2018-05-02 16:07:12 +02:00
|
|
|
public interface BaseTaskConfiguration {
|
2018-04-26 12:01:20 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the task id.
|
|
|
|
*
|
|
|
|
* @return the task id
|
|
|
|
*/
|
|
|
|
String getTaskId();
|
|
|
|
|
2018-05-02 16:07:12 +02:00
|
|
|
/**
|
|
|
|
* Gets the workspace item id where execute the Task.
|
|
|
|
*
|
|
|
|
* @return the workspace item id
|
|
|
|
*/
|
|
|
|
String getWorkspaceItemId();
|
|
|
|
|
|
|
|
|
2018-04-26 12:01:20 +02:00
|
|
|
/**
|
|
|
|
* Gets the task description.
|
|
|
|
*
|
|
|
|
* @return the task description
|
|
|
|
*/
|
|
|
|
String getTaskDescription();
|
|
|
|
|
2018-04-26 12:30:37 +02:00
|
|
|
|
2018-04-26 12:01:20 +02:00
|
|
|
/**
|
|
|
|
* Gets the map parameters.
|
|
|
|
*
|
|
|
|
* @return the map parameters
|
|
|
|
*/
|
|
|
|
Map<String, String> getMapParameters();
|
|
|
|
|
|
|
|
|
2018-05-02 17:59:52 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the access key to retrieve this configuration from gcube properties saved in the workspace.
|
|
|
|
*
|
|
|
|
* @return the access key
|
|
|
|
*/
|
|
|
|
String getAccessKey();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the access key to save this configuration in the workspace gcube properties.
|
|
|
|
*
|
|
|
|
* @param accessKey the access key
|
|
|
|
*/
|
|
|
|
void setAccessKey(String accessKey);
|
|
|
|
|
|
|
|
|
2018-04-26 12:01:20 +02:00
|
|
|
}
|