-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2054 from keeps/jgomes-dev
Roda Central Actions
- Loading branch information
Showing
18 changed files
with
232 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,6 @@ | |
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
|
||
/** | ||
* @author Hélder Silva <[email protected]> | ||
*/ | ||
|
@@ -60,7 +59,7 @@ public enum JOB_STATE { | |
// job instance id | ||
private String instanceId = null; | ||
|
||
private List<JobUserDetails> jobUsersDetails= new ArrayList<>(); | ||
private List<JobUserDetails> jobUsersDetails = new ArrayList<>(); | ||
private String instanceName = null; | ||
|
||
// job statistics (total source objects, etc.) | ||
|
@@ -154,7 +153,6 @@ public void setJobUsersDetails(List<JobUserDetails> jobUserDetails) { | |
this.jobUsersDetails = jobUserDetails; | ||
} | ||
|
||
|
||
public Date getStartDate() { | ||
return startDate; | ||
} | ||
|
@@ -312,7 +310,7 @@ public void setAttachmentsList(List<String> attachmentsList) { | |
|
||
@Override | ||
public String toString() { | ||
return "Job [id=" + id + ", name=" + name + ", username=" + username + ", startDate=" + startDate + ", endDate=" | ||
return "Job [id=" + id + ", name=" + name + ", username=" + username + ", startDate=" + startDate + ", endDate=" | ||
+ endDate + ", state=" + state + ", stateDetails=" + stateDetails + ", priority=" + priority + ", type=" | ||
+ parallelism + ", jobStats=" + jobStats + ", plugin=" + plugin + ", pluginType=" + pluginType | ||
+ ", pluginParameters=" + pluginParameters + ", sourceObjects=" + sourceObjects + ", outcomeObjectsClass=" | ||
|
@@ -358,4 +356,33 @@ public void setFields(Map<String, Object> fields) { | |
this.fields = fields; | ||
} | ||
|
||
public Job clone() { | ||
final Job newJob = new Job(); | ||
newJob.setName(getName()); | ||
newJob.setUsername(getUsername()); | ||
newJob.setInstanceName(getInstanceName()); | ||
newJob.setStartDate(getStartDate()); | ||
newJob.setEndDate(getEndDate()); | ||
newJob.setJobUsersDetails(getJobUsersDetails()); | ||
newJob.setPluginType(getPluginType()); | ||
newJob.setPlugin(getPlugin()); | ||
newJob.setPluginParameters(getPluginParameters()); | ||
newJob.setPriority(getPriority()); | ||
newJob.setParallelism(getParallelism()); | ||
newJob.setState(getState()); | ||
newJob.setJobUsersDetails(getJobUsersDetails()); | ||
newJob.setStateDetails(getStateDetails()); | ||
newJob.setSourceObjects(getSourceObjects()); | ||
newJob.setOutcomeObjectsClass(getOutcomeObjectsClass()); | ||
newJob.getJobStats().setCompletionPercentage(getJobStats().getCompletionPercentage()); | ||
newJob.getJobStats().setSourceObjectsBeingProcessed(getJobStats().getSourceObjectsBeingProcessed()); | ||
newJob.getJobStats().setOutcomeObjectsWithManualIntervention(getJobStats().getOutcomeObjectsWithManualIntervention()); | ||
newJob.getJobStats().setSourceObjectsCount(getJobStats().getSourceObjectsCount()); | ||
newJob.getJobStats().setSourceObjectsProcessedWithPartialSuccess(getJobStats().getSourceObjectsProcessedWithPartialSuccess()); | ||
newJob.getJobStats().setSourceObjectsProcessedWithSkipped(getJobStats().getSourceObjectsProcessedWithSkipped()); | ||
newJob.getJobStats().setSourceObjectsProcessedWithSuccess(getJobStats().getSourceObjectsProcessedWithSuccess()); | ||
newJob.getJobStats().setSourceObjectsProcessedWithFailure(getJobStats().getSourceObjectsProcessedWithFailure()); | ||
newJob.getJobStats().setSourceObjectsWaitingToBeProcessed(getJobStats().getSourceObjectsWaitingToBeProcessed()); | ||
return newJob; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.