Annotated fields to correctly manage SOAP requests

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/vre-management/smart-executor-api@119513 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2015-10-08 10:03:03 +00:00
parent 51ef7a2e74
commit 2bb3eeaf6e
2 changed files with 12 additions and 5 deletions

View File

@ -30,8 +30,10 @@ public class LaunchParameter implements Comparable<LaunchParameter>{
@XmlJavaTypeAdapter(MapAdapter.class)
protected Map<String, Object> inputs;
@XmlElement
protected Scheduling scheduling;
@XmlElement
protected boolean persist;
protected LaunchParameter(){}

View File

@ -5,40 +5,45 @@ package org.gcube.vremanagement.executor.api.types;
import java.util.Calendar;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import org.quartz.CronExpression;
/**
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
*/
@XmlRootElement()
@XmlAccessorType(XmlAccessType.FIELD)
public class Scheduling implements Comparable<Scheduling> {
@XmlElement
/**
* CRON like expression for a repetitive task.
* This field is not valid when using delay
*/
@XmlElement
protected String cronExpression;
@XmlElement
/**
* Delay between subsequent execution in seconds.
* This field is not valid when using cronExpression
*/
@XmlElement
protected Integer delay;
@XmlElement
/**
* Indicates the number of times the scheduling pattern must be applied.
* 0 means indefinitely.
*/
@XmlElement
protected int schedulingTimes;
@XmlElement
/**
* The first instant when the scheduling can start
*/
@XmlElement
protected Long firstStartTime; // O or null means immediately
/**
@ -48,7 +53,6 @@ public class Scheduling implements Comparable<Scheduling> {
@XmlElement
protected Long endTime; // O or null means never
@XmlElement
/**
* When using cronExpression run the subsequent task only if the previous
* are terminated otherwise this execution is discarded and the subsequent
@ -56,6 +60,7 @@ public class Scheduling implements Comparable<Scheduling> {
* The discarded execution is counted in the total number of executions
* happened.
*/
@XmlElement
protected boolean previuosExecutionsMustBeCompleted;