hello,

I am working on my research project, and for that I have created a VM allocation policy algorithm in cloudsim. i want to check the host before allocating the vm, is it suitable for the current vm or not. if it is suitable, things must go as usual. but if it is not suitable, i.e if method returns false, the respective host for the specified vm should be removed from the list of hosts, and vm is allocated to just next suitable vm.

now my question is, how to call the same method, i.e  public boolean isSuitableForVm(Vm vm) in vm allocation policy class, so that i can implement the above functionality.

in vm allocation policy, we can call this method, host.vmCreate(vm);

in similar way i want to implement the public boolean isSuitableForVm(Vm vm) in vm allocation policy class

please help.

More Ankita Jiyani Mangtani's questions See All
Similar questions and discussions