183 lines
3.2 KiB
Java
183 lines
3.2 KiB
Java
/**
|
|
*
|
|
*/
|
|
|
|
package org.gcube.common.workspacetaskexecutor.shared.homelibrary;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Map;
|
|
|
|
import org.apache.http.HttpRequest;
|
|
import org.gcube.common.workspacetaskexecutor.TaskConfiguration;
|
|
|
|
|
|
|
|
/**
|
|
* The Class DataMinerAlgorithmConfiguration.
|
|
*
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
* Apr 26, 2018
|
|
*/
|
|
public class AlgorithmConfiguration implements TaskConfiguration, Serializable {
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private static final long serialVersionUID = -3380573762288127547L;
|
|
private String taskId;
|
|
private String taskDescription;
|
|
private String token;
|
|
private String workspaceItemId;
|
|
private Map<String, String> mapParameters;
|
|
|
|
/**
|
|
* Instantiates a new run algorithm configuration.
|
|
*/
|
|
public AlgorithmConfiguration() {
|
|
|
|
}
|
|
|
|
/**
|
|
* @param taskId
|
|
* @param taskDescription
|
|
* @param token
|
|
* @param workspaceItemId
|
|
* @param mapParameters
|
|
*/
|
|
public AlgorithmConfiguration(
|
|
String taskId, String taskDescription, String token,
|
|
String workspaceItemId, Map<String, String> mapParameters) {
|
|
|
|
super();
|
|
this.taskId = taskId;
|
|
this.taskDescription = taskDescription;
|
|
this.token = token;
|
|
this.workspaceItemId = workspaceItemId;
|
|
this.mapParameters = mapParameters;
|
|
}
|
|
|
|
|
|
/**
|
|
* @return the taskId
|
|
*/
|
|
public String getTaskId() {
|
|
|
|
return taskId;
|
|
}
|
|
|
|
|
|
/**
|
|
* @return the taskDescription
|
|
*/
|
|
public String getTaskDescription() {
|
|
|
|
return taskDescription;
|
|
}
|
|
|
|
|
|
/**
|
|
* @return the token
|
|
*/
|
|
public String getToken() {
|
|
|
|
return token;
|
|
}
|
|
|
|
|
|
/**
|
|
* @return the workspaceItemId
|
|
*/
|
|
public String getWorkspaceItemId() {
|
|
|
|
return workspaceItemId;
|
|
}
|
|
|
|
|
|
/**
|
|
* @return the mapParameters
|
|
*/
|
|
public Map<String, String> getMapParameters() {
|
|
|
|
return mapParameters;
|
|
}
|
|
|
|
|
|
/**
|
|
* @param taskId the taskId to set
|
|
*/
|
|
public void setTaskId(String taskId) {
|
|
|
|
this.taskId = taskId;
|
|
}
|
|
|
|
|
|
/**
|
|
* @param taskDescription the taskDescription to set
|
|
*/
|
|
public void setTaskDescription(String taskDescription) {
|
|
|
|
this.taskDescription = taskDescription;
|
|
}
|
|
|
|
|
|
/**
|
|
* @param token the token to set
|
|
*/
|
|
public void setToken(String token) {
|
|
|
|
this.token = token;
|
|
}
|
|
|
|
|
|
/**
|
|
* @param workspaceItemId the workspaceItemId to set
|
|
*/
|
|
public void setWorkspaceItemId(String workspaceItemId) {
|
|
|
|
this.workspaceItemId = workspaceItemId;
|
|
}
|
|
|
|
|
|
/**
|
|
* @param mapParameters the mapParameters to set
|
|
*/
|
|
public void setMapParameters(Map<String, String> mapParameters) {
|
|
|
|
this.mapParameters = mapParameters;
|
|
}
|
|
|
|
/* (non-Javadoc)
|
|
* @see org.gcube.common.workspacetaskexecutor.TaskConfiguration#getHttpRequest()
|
|
*/
|
|
@Override
|
|
public HttpRequest getHttpRequest() {
|
|
|
|
// TODO Auto-generated method stub
|
|
return null;
|
|
}
|
|
|
|
/* (non-Javadoc)
|
|
* @see java.lang.Object#toString()
|
|
*/
|
|
@Override
|
|
public String toString() {
|
|
|
|
StringBuilder builder = new StringBuilder();
|
|
builder.append("AlgorithmConfiguration [taskId=");
|
|
builder.append(taskId);
|
|
builder.append(", taskDescription=");
|
|
builder.append(taskDescription);
|
|
builder.append(", token=");
|
|
builder.append(token);
|
|
builder.append(", workspaceItemId=");
|
|
builder.append(workspaceItemId);
|
|
builder.append(", mapParameters=");
|
|
builder.append(mapParameters);
|
|
builder.append("]");
|
|
return builder.toString();
|
|
}
|
|
|
|
|
|
|
|
}
|