The following methods in "Datacenter.class"
processCloudletMove
processCloudletResume
processCloudletPause
processCloudletCancel
processCloudletStatus
use getVm(userId,vmId) method from "Host.class" :
1- processCloudletMove:
Cloudlet cl = getVmAllocationPolicy().getHost(vmId, userId).getVm(userId,
vmId).getCloudletScheduler().cloudletCancel(cloudletId);
2- processCloudletResume:
double eventTime = getVmAllocationPolicy().getHost(vmId,userId).getVm(userId,
vmId).getCloudletScheduler().cloudletResume(cloudletId);
3- processCloudletPause:
boolean status = getVmAllocationPolicy().getHost(vmId,userId).getVm(userId,
vmId).getCloudletScheduler().cloudletPause(cloudletId);
4-processCloudletCancel:
Cloudlet cl = getVmAllocationPolicy().getHost(vmId,userId).getVm(userId,
vmId).getCloudletScheduler().cloudletCancel(cloudletId);
5- processCloudletStatus:
status = getVmAllocationPolicy().getHost(vmId, userId).getVm(userId,
vmId).getCloudletScheduler().getCloudletStatus(cloudletId);
Therefore, the order of the parameter passing in calling getVm does not comply
with its definition. Consequently, calling getVm in these methods leads NULL to
be returned in general.
Version : 2.1 - 3.0
solution:
change these codes to
1- processCloudletMove:
Cloudlet cl = getVmAllocationPolicy().getHost(vmId, userId).getVm(vmId,
userId).getCloudletScheduler().cloudletCancel(cloudletId);
2- processCloudletResume:
double eventTime =
getVmAllocationPolicy().getHost(vmId,userId).getVm(vmId,userId).getCloudletSched
uler().cloudletResume(cloudletId);
3- processCloudletPause:
boolean status =
getVmAllocationPolicy().getHost(vmId,userId).getVm(vmId,userId).getCloudletSched
uler().cloudletPause(cloudletId);
4-processCloudletCancel:
Cloudlet cl = getVmAllocationPolicy().getHost(vmId,userId).getVm(userId,
vmId).getCloudletScheduler().cloudletCancel(cloudletId);
5- processCloudletStatus:
status = getVmAllocationPolicy().getHost(vmId,
userId).getVm(vmId,userId).getCloudletScheduler().getCloudletStatus(cloudletId);
Reporter: seyedmehdi Hosseinimotlagh
email : mehdi.hoseini@gmail.com
Original issue reported on code.google.com by Mehdi.Ho...@gmail.com on 9 Dec 2012 at 9:37
Original issue reported on code.google.com by
Mehdi.Ho...@gmail.com
on 9 Dec 2012 at 9:37