Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows a DatacenterBroker to sort submitted VMs and Cloudlets #102

Closed
RaysaOliveira opened this issue Jun 3, 2017 · 1 comment
Closed

Comments

@RaysaOliveira
Copy link
Contributor

RaysaOliveira commented Jun 3, 2017

Feature

  • Updates the DatacenterBroker interface and implementing classes, including the methods setVmComparator and setCloudletComparator to enable a developer to set a Comparator object (which can be given as a Lambda Expression) to be used to sort Vms and Cloudlets, 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 and Cloudlets, following the order defined by the given Comparators.
  • 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.

@manoelcampos
Copy link
Collaborator

Closed by d2c223d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants