Reputation: 41
Is there any way to find out number of cloudlet on VM in cloudsim?
Upvotes: 2
Views: 379
Reputation: 2561
There's a method getVmId()
of Class Cloudlet
which gives you the ID of VM on which cloudlet
would be scheduled.
cloudlet.getVmId()
Returns: VM Id or -1 if the Cloudlet was not assigned to a VM
By setting counter you can count number of cloudlets running on particular VM.
Upvotes: 1