|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ua.broker.scheduling.region.RegionWorkloadCollection
public class RegionWorkloadCollection
This class is used to represent the workload that is appointed to a certain geographical region by the RegionAllocator. It's possible the task was task was already appointed to the region by the user of the broker, but it's also possible that the RegionAllocator determined the region to be expected to be the cheapest one to run the workload in.
Constructor Summary | |
---|---|
RegionWorkloadCollection(java.lang.String reg)
Constructor for RegionWorkloadCollection |
Method Summary | |
---|---|
void |
add(InstanceSpecification spec,
Workload workload)
Add a workload that is associated with the region of this RegionWorkloadCollection, that is associated with a provided instance specification |
java.lang.String |
getRegion()
|
void |
print()
Print functionality for the regionWorkloadCollection |
java.util.List<SchedulerResult> |
schedule(boolean wm1,
java.lang.String version)
Schedule the workloads of this collection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegionWorkloadCollection(java.lang.String reg)
reg
- the geographical region the workload is associated withMethod Detail |
---|
public void add(InstanceSpecification spec, Workload workload)
spec
- the instance specification of the instance the provided
workload has to run onworkload
- the workloadpublic java.lang.String getRegion()
public java.util.List<SchedulerResult> schedule(boolean wm1, java.lang.String version) throws InvalidInputException
wm1
- whether workload model one is being usedversion
- the scheduling option that is begin used
InvalidInputException
- exception thrown when an invalid scheduling option is
providedpublic void print()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |