|
||||||||||
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.RegionAllocator
public class RegionAllocator
This class is used during the scheduling phase of the broker. Every task is first appointed to a region where running the load is expected to be the least costly. The region allocation step will appoint a task that is not assigned to a geographical region by the user to a region.
Constructor Summary | |
---|---|
RegionAllocator(TaskCollection coll)
Constructor for RegionAllocator |
Method Summary | |
---|---|
java.util.List<RegionWorkloadCollection> |
allocateRegions()
Appoint every task of the taskCollection of the RegionAllocator to a region and return a list of regionWorkloadCollections, which is a collection of tasks associated with a certain geographical region. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegionAllocator(TaskCollection coll)
coll
- the collection of tasks to process, all the tasks of the
collection are assigned to an appropriate geographical regionMethod Detail |
---|
public java.util.List<RegionWorkloadCollection> allocateRegions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |