updated bean

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/workspace-task-executor-library@167515 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2018-05-16 12:38:09 +00:00
parent 7d7c091bc2
commit 4a85e75565
1 changed files with 9 additions and 11 deletions

View File

@ -2,7 +2,6 @@ package org.gcube.common.workspacetaskexecutor.shared.dataminer;
import java.io.Serializable; import java.io.Serializable;
import org.gcube.common.workspacetaskexecutor.shared.BaseTaskConfiguration;
import org.gcube.common.workspacetaskexecutor.shared.BaseTaskExecutionStatus; import org.gcube.common.workspacetaskexecutor.shared.BaseTaskExecutionStatus;
import org.gcube.common.workspacetaskexecutor.shared.TaskStatus; import org.gcube.common.workspacetaskexecutor.shared.TaskStatus;
@ -25,7 +24,7 @@ public class TaskExecutionStatus implements BaseTaskExecutionStatus, Serializabl
private String log; private String log;
private String currentMessage="Waiting to start.."; private String currentMessage="Waiting to start..";
private TaskComputation taskComputation; private TaskComputation taskComputation;
private BaseTaskConfiguration taskConfiguration; private TaskConfiguration taskConfiguration;
/** /**
@ -35,13 +34,14 @@ public class TaskExecutionStatus implements BaseTaskExecutionStatus, Serializabl
} }
/** /**
* Instantiates a new task execution status. * Instantiates a new task execution status.
* *
* @param taskConfiguration the task configuration * @param taskConfiguration the task configuration
* @param taskComputation the task computation * @param taskComputation the task computation
*/ */
public TaskExecutionStatus(BaseTaskConfiguration taskConfiguration, TaskComputation taskComputation) { public TaskExecutionStatus(TaskConfiguration taskConfiguration, TaskComputation taskComputation) {
this.taskConfiguration = taskConfiguration; this.taskConfiguration = taskConfiguration;
this.taskComputation = taskComputation; this.taskComputation = taskComputation;
} }
@ -56,12 +56,12 @@ public class TaskExecutionStatus implements BaseTaskExecutionStatus, Serializabl
* @param percentCompleted the percent completed * @param percentCompleted the percent completed
* @param log the log * @param log the log
* @param currentMessage the current message * @param currentMessage the current message
* @param taskComputation the task computation
* @param taskConfiguration the task configuration * @param taskConfiguration the task configuration
* @param taskComputation the task computation
*/ */
public TaskExecutionStatus( public TaskExecutionStatus(
Long errorCount, TaskStatus status, Float percentCompleted, String log, Long errorCount, TaskStatus status, Float percentCompleted, String log,
String currentMessage, TaskComputation taskComputation, TaskConfiguration taskConfiguration) { String currentMessage, TaskConfiguration taskConfiguration, TaskComputation taskComputation) {
this.errorCount = errorCount; this.errorCount = errorCount;
this.status = status; this.status = status;
this.percentCompleted = percentCompleted; this.percentCompleted = percentCompleted;
@ -82,7 +82,6 @@ public class TaskExecutionStatus implements BaseTaskExecutionStatus, Serializabl
return taskComputation; return taskComputation;
} }
/** /**
* Sets the task computation. * Sets the task computation.
* *
@ -189,12 +188,11 @@ public class TaskExecutionStatus implements BaseTaskExecutionStatus, Serializabl
} }
/**
* Gets the task configuration. /* (non-Javadoc)
* * @see org.gcube.common.workspacetaskexecutor.shared.BaseTaskExecutionStatus#getTaskConfiguration()
* @return the task configuration
*/ */
public BaseTaskConfiguration getTaskConfiguration() { public TaskConfiguration getTaskConfiguration() {
return taskConfiguration; return taskConfiguration;
} }