be.ac.ua.broker.scheduling.region
Class InstanceWorkloadCollection

java.lang.Object
  extended by be.ac.ua.broker.scheduling.region.InstanceWorkloadCollection

public class InstanceWorkloadCollection
extends java.lang.Object

This class is used to represent the workload that is appointed to a certain instance in one geographical region by the RegionAllocator.

Author:
Vermeersch Kurt

Constructor Summary
InstanceWorkloadCollection(InstanceSpecification spec)
          Constructor for InstanceWorkloadCollection
 
Method Summary
 void add(Workload workload)
          Add a provided workload
 InstanceSpecification getSpecification()
           
 java.util.Date getStartDate()
           
 java.util.List<Workload> getWorkload()
           
 void print()
          Print functionality for the instanceWorkloadCollection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceWorkloadCollection

public InstanceWorkloadCollection(InstanceSpecification spec)
Constructor for InstanceWorkloadCollection

Parameters:
spec - the instance specification of the instance the workloads are associated with
Method Detail

add

public void add(Workload workload)
Add a provided workload

Parameters:
workload - the workload to add to the instance specification specific collection of workloads

getSpecification

public InstanceSpecification getSpecification()
Returns:
the instance specification of the instance this workload collection is associated with

getWorkload

public java.util.List<Workload> getWorkload()
Returns:
list of workloads that is associated with the corresponding instance of the provided instance specification

getStartDate

public java.util.Date getStartDate()
Returns:
the start time of the scheduling period

print

public void print()
Print functionality for the instanceWorkloadCollection