public class CloudletSchedulerTimeShared extends CloudletScheduler
| Modifier and Type | Field and Description |
|---|---|
protected int |
currentCPUs
The current cp us.
|
| Constructor and Description |
|---|
CloudletSchedulerTimeShared()
Creates a new CloudletSchedulerTimeShared object.
|
| Modifier and Type | Method and Description |
|---|---|
Cloudlet |
cloudletCancel(int cloudletId)
Cancels execution of a cloudlet.
|
void |
cloudletFinish(ResCloudlet rcl)
Processes a finished cloudlet.
|
boolean |
cloudletPause(int cloudletId)
Pauses execution of a cloudlet.
|
double |
cloudletResume(int cloudletId)
Resumes execution of a paused cloudlet.
|
double |
cloudletSubmit(Cloudlet cloudlet)
Receives an cloudlet to be executed in the VM managed by this scheduler.
|
double |
cloudletSubmit(Cloudlet cloudlet,
double fileTransferTime)
Receives an cloudlet to be executed in the VM managed by this scheduler.
|
protected double |
getCapacity(java.util.List<java.lang.Double> mipsShare)
Gets the capacity.
|
protected <T extends ResCloudlet> |
getCloudletExecList()
Gets the cloudlet exec list.
|
protected <T extends ResCloudlet> |
getCloudletFinishedList()
Gets the cloudlet finished list.
|
protected <T extends ResCloudlet> |
getCloudletPausedList()
Gets the cloudlet paused list.
|
int |
getCloudletStatus(int cloudletId)
Gets the status of a cloudlet.
|
java.util.List<java.lang.Double> |
getCurrentRequestedMips()
Gets the current requested mips.
|
double |
getCurrentRequestedUtilizationOfBw()
Gets the current requested bw.
|
double |
getCurrentRequestedUtilizationOfRam()
Gets the current requested ram.
|
Cloudlet |
getNextFinishedCloudlet()
Returns the next cloudlet in the finished list, $null if this list is empty.
|
double |
getTotalCurrentAllocatedMipsForCloudlet(ResCloudlet rcl,
double time)
Gets the total current allocated mips for cloudlet.
|
double |
getTotalCurrentAvailableMipsForCloudlet(ResCloudlet rcl,
java.util.List<java.lang.Double> mipsShare)
Gets the total current mips for the Cloudlet.
|
double |
getTotalCurrentRequestedMipsForCloudlet(ResCloudlet rcl,
double time)
Gets the total current requested mips for cloudlet.
|
double |
getTotalUtilizationOfCpu(double time)
Get utilization created by all cloudlets.
|
boolean |
isFinishedCloudlets()
Informs about completion of some cloudlet in the VM managed by this scheduler.
|
Cloudlet |
migrateCloudlet()
Returns one cloudlet to migrate to another vm.
|
int |
runningCloudlets()
Returns the number of cloudlets runnning in the virtual machine.
|
protected <T extends ResCloudlet> |
setCloudletExecList(java.util.List<T> cloudletExecList)
Sets the cloudlet exec list.
|
protected <T extends ResCloudlet> |
setCloudletFinishedList(java.util.List<T> cloudletFinishedList)
Sets the cloudlet finished list.
|
protected <T extends ResCloudlet> |
setCloudletPausedList(java.util.List<T> cloudletPausedList)
Sets the cloudlet paused list.
|
double |
updateVmProcessing(double currentTime,
java.util.List<java.lang.Double> mipsShare)
Updates the processing of cloudlets running under management of this scheduler.
|
getCurrentMipsShare, getPreviousTime, setCurrentMipsShare, setPreviousTimepublic CloudletSchedulerTimeShared()
public double updateVmProcessing(double currentTime,
java.util.List<java.lang.Double> mipsShare)
updateVmProcessing in class CloudletSchedulercurrentTime - current simulation timemipsShare - array with MIPS share of each processor available to the schedulerprotected double getCapacity(java.util.List<java.lang.Double> mipsShare)
mipsShare - the mips sharepublic Cloudlet cloudletCancel(int cloudletId)
cloudletCancel in class CloudletSchedulercloudletId - ID of the cloudlet being cancealedpublic boolean cloudletPause(int cloudletId)
cloudletPause in class CloudletSchedulercloudletId - ID of the cloudlet being pausedpublic void cloudletFinish(ResCloudlet rcl)
cloudletFinish in class CloudletSchedulerrcl - finished cloudletpublic double cloudletResume(int cloudletId)
cloudletResume in class CloudletSchedulercloudletId - ID of the cloudlet being resumedpublic double cloudletSubmit(Cloudlet cloudlet, double fileTransferTime)
cloudletSubmit in class CloudletSchedulercloudlet - the submited cloudletfileTransferTime - time required to move the required files from the SAN to the VMpublic double cloudletSubmit(Cloudlet cloudlet)
CloudletSchedulercloudletSubmit in class CloudletSchedulercloudlet - the submited cloudletpublic int getCloudletStatus(int cloudletId)
getCloudletStatus in class CloudletSchedulercloudletId - ID of the cloudletpublic double getTotalUtilizationOfCpu(double time)
getTotalUtilizationOfCpu in class CloudletSchedulertime - the timepublic boolean isFinishedCloudlets()
isFinishedCloudlets in class CloudletSchedulerpublic Cloudlet getNextFinishedCloudlet()
getNextFinishedCloudlet in class CloudletSchedulerpublic int runningCloudlets()
runningCloudlets in class CloudletSchedulerpublic Cloudlet migrateCloudlet()
migrateCloudlet in class CloudletSchedulerprotected <T extends ResCloudlet> java.util.List<T> getCloudletExecList()
T - the generic typeprotected <T extends ResCloudlet> void setCloudletExecList(java.util.List<T> cloudletExecList)
T - the generic typecloudletExecList - the new cloudlet exec listprotected <T extends ResCloudlet> java.util.List<T> getCloudletPausedList()
T - the generic typeprotected <T extends ResCloudlet> void setCloudletPausedList(java.util.List<T> cloudletPausedList)
T - the generic typecloudletPausedList - the new cloudlet paused listprotected <T extends ResCloudlet> java.util.List<T> getCloudletFinishedList()
T - the generic typeprotected <T extends ResCloudlet> void setCloudletFinishedList(java.util.List<T> cloudletFinishedList)
T - the generic typecloudletFinishedList - the new cloudlet finished listpublic java.util.List<java.lang.Double> getCurrentRequestedMips()
CloudletSchedulergetCurrentRequestedMips in class CloudletSchedulerpublic double getTotalCurrentAvailableMipsForCloudlet(ResCloudlet rcl, java.util.List<java.lang.Double> mipsShare)
CloudletSchedulergetTotalCurrentAvailableMipsForCloudlet in class CloudletSchedulerrcl - the rclmipsShare - the mips sharepublic double getTotalCurrentAllocatedMipsForCloudlet(ResCloudlet rcl, double time)
CloudletSchedulergetTotalCurrentAllocatedMipsForCloudlet in class CloudletSchedulerrcl - the rcltime - the timepublic double getTotalCurrentRequestedMipsForCloudlet(ResCloudlet rcl, double time)
CloudletSchedulergetTotalCurrentRequestedMipsForCloudlet in class CloudletSchedulerrcl - the rcltime - the timepublic double getCurrentRequestedUtilizationOfRam()
CloudletSchedulergetCurrentRequestedUtilizationOfRam in class CloudletSchedulerpublic double getCurrentRequestedUtilizationOfBw()
CloudletSchedulergetCurrentRequestedUtilizationOfBw in class CloudletScheduler