be.ac.ua.broker.input.tasks
Class TaskSpecification

java.lang.Object
  extended by 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

Constructor Summary
TaskSpecification(java.lang.String nm, java.lang.String desc, InstanceSpecification spec, java.util.Date dead, boolean spotAllowed)
          Constructor for TaskSpecification
 
Method Summary
 java.util.Date getDeadline()
           
 java.lang.String getDescription()
           
 InstanceSpecification getInstanceSpecification()
           
 java.lang.String getName()
           
 java.util.Date getStart()
           
 boolean isSpotAllowed()
           
 void setStartDate(java.util.Date start)
          Setter for the start time of the scheduling period of the task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 task
desc - the description of the task
spec - the specification of the instance the task has to run on
dead - the deadline of the task
spotAllowed - whether the task is allowed to be run on spot instances
Method Detail

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