be.ac.ua.broker.input.tasks
Class TaskSpecification
java.lang.Object
be.ac.ua.broker.input.tasks.TaskSpecification
public class TaskSpecification
- extends java.lang.Object
This class represents the specification of a single task, it consist of a
name, description, deadline of the task. Also the information about the
instance on which the task has to be run is stored, the start time of the
scheduling period for the task and whether the task is allowed to be run on
spot instances is specified.
- Author:
- Vermeersch Kurt
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskSpecification
public TaskSpecification(java.lang.String nm,
java.lang.String desc,
InstanceSpecification spec,
java.util.Date dead,
boolean spotAllowed)
- Constructor for TaskSpecification
- Parameters:
nm
- the name of the taskdesc
- the description of the taskspec
- the specification of the instance the task has to run ondead
- the deadline of the taskspotAllowed
- whether the task is allowed to be run on spot instances
getName
public java.lang.String getName()
- Returns:
- the name of the task
getDescription
public java.lang.String getDescription()
- Returns:
- the description of the task
getInstanceSpecification
public InstanceSpecification getInstanceSpecification()
- Returns:
- the specification of the instance the task has to run on
getDeadline
public java.util.Date getDeadline()
- Returns:
- the deadline of the task
isSpotAllowed
public boolean isSpotAllowed()
- Returns:
- whether the task is allowed to be run on spot instances
setStartDate
public void setStartDate(java.util.Date start)
- Setter for the start time of the scheduling period of the task
- Parameters:
start
- the start time of the scheduling period of the task
getStart
public java.util.Date getStart()
- Returns:
- the start time of the scheduling period for the task