Pure_Heart
Pure_Heart

Reputation: 41

Is there any way to find out number of cloudlet on a specific VM in cloudsim?

Is there any way to find out number of cloudlet on VM in cloudsim?

Upvotes: 2

Views: 379

Answers (1)

Chanda Korat
Chanda Korat

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

Related Questions