be.ac.ua.broker.scheduling.workload
Class SchedulerResult
java.lang.Object
be.ac.ua.broker.scheduling.workload.SchedulerResult
public class SchedulerResult
- extends java.lang.Object
This class is used to represent the resulting schedule of the broker created
during the scheduling phase of the broker process. The optimizer returns a
schedulerResult, since it represents a schedule associated with a singel
instance specification.
- Author:
- Vermeersch Kurt
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchedulerResult
public SchedulerResult(InstanceSpecification spec)
- Constructor for SchedulerResults
- Parameters:
spec
- the specification of the instance this schedule is created for
getInstanceSpecification
public InstanceSpecification getInstanceSpecification()
- Returns:
- the specification of the instance the schedulerResult is created
for
addScheduledTaskCollection
public void addScheduledTaskCollection(ScheduledTaskCollection scheduledTasks)
- Add a schedule of subTasks on a single instance to the schedule for the
given instance specification in the region being processed
- Parameters:
scheduledTasks
- the schedule to add to the result
getScheduledTaskCollections
public java.util.List<ScheduledTaskCollection> getScheduledTaskCollections()
- Returns:
- the list of schedules of separate EC2 instances
getRegion
public java.lang.String getRegion()
- Returns:
- the geographical region this schedule is associated with