Allows a DatacenterBroker to sort submitted VMs and Cloudlets
RaysaOliveira opened this issue · comments
Feature
- Updates the
DatacenterBroker
interface and implementing classes, including the methodssetVmComparator
andsetCloudletComparator
to enable a developer to set aComparator
object (which can be given as a Lambda Expression) to be used to sortVms
andCloudlets
, respectively, every time when such objects are submitted to the broker.
This new feature ensures that such submitted objects are are sorted before requesting their creation. - This sorting feature enables defining priorities to request the creation of
Vms
andCloudlets
, following the order defined by the givenComparators
. - If no
Comparator
is set, the broker will request the creation of the submitted objects in the order they were submitted.
Notes
The feature was introduced in the previous commit d2c223d. This issue is just for documentation purposes.
Closed by d2c223d