public class CloudletSchedulerDynamicWorkload extends CloudletSchedulerTimeShared
currentCPUs
Constructor and Description |
---|
CloudletSchedulerDynamicWorkload(double mips,
int numberOfPes)
Instantiates a new vM scheduler time shared.
|
Modifier and Type | Method and Description |
---|---|
void |
cloudletFinish(ResCloudlet rcl)
Processes a finished cloudlet.
|
double |
cloudletSubmit(Cloudlet cl)
Receives an cloudlet to be executed in the VM managed by this scheduler.
|
double |
cloudletSubmit(Cloudlet cl,
double fileTransferTime)
Receives an cloudlet to be executed in the VM managed by this scheduler.
|
protected List<Double> |
getCacheCurrentRequestedMips()
Gets the cache current requested mips.
|
protected double |
getCachePreviousTime()
Gets the cache previous time.
|
List<Double> |
getCurrentRequestedMips()
Gets the current mips.
|
double |
getEstimatedFinishTime(ResCloudlet rcl,
double time)
Get estimated cloudlet completion time.
|
double |
getMips()
Gets the mips.
|
int |
getNumberOfPes()
Gets the pes number.
|
double |
getTotalCurrentAllocatedMipsForCloudlet(ResCloudlet rcl,
double time)
Gets the current mips.
|
double |
getTotalCurrentAvailableMipsForCloudlet(ResCloudlet rcl,
List<Double> mipsShare)
Gets the total current mips for the clouddlet.
|
int |
getTotalCurrentMips()
Gets the total current mips.
|
double |
getTotalCurrentRequestedMipsForCloudlet(ResCloudlet rcl,
double time)
Gets the current mips.
|
double |
getTotalMips()
Gets the total mips.
|
double |
getTotalUtilizationOfCpu(double time)
Get utilization created by all cloudlets.
|
Map<String,Double> |
getUnderAllocatedMips()
Gets the under allocated mips.
|
protected void |
setCacheCurrentRequestedMips(List<Double> cacheCurrentRequestedMips)
Sets the cache current requested mips.
|
protected void |
setCachePreviousTime(double cachePreviousTime)
Sets the cache previous time.
|
void |
setMips(double mips)
Sets the mips.
|
void |
setNumberOfPes(int pesNumber)
Sets the pes number.
|
void |
setTotalMips(double mips)
Sets the total mips.
|
void |
setUnderAllocatedMips(Map<String,Double> underAllocatedMips)
Sets the under allocated mips.
|
void |
updateUnderAllocatedMipsForCloudlet(ResCloudlet rcl,
double mips)
Update under allocated mips for cloudlet.
|
double |
updateVmProcessing(double currentTime,
List<Double> mipsShare)
Updates the processing of cloudlets running under management of this scheduler.
|
cloudletCancel, cloudletPause, cloudletResume, getCloudletExecList, getCloudletFinishedList, getCloudletPausedList, getCloudletStatus, getCurrentRequestedUtilizationOfBw, getCurrentRequestedUtilizationOfRam, getNextFinishedCloudlet, isFinishedCloudlets, migrateCloudlet, runningCloudlets, setCloudletExecList, setCloudletFinishedList, setCloudletPausedList
getCurrentMipsShare, getPreviousTime, setCurrentMipsShare, setPreviousTime
public CloudletSchedulerDynamicWorkload(double mips, int numberOfPes)
mips
- the mipsnumberOfPes
- the pes numberpublic double updateVmProcessing(double currentTime, List<Double> mipsShare)
updateVmProcessing
in class CloudletSchedulerTimeShared
currentTime
- current simulation timemipsShare
- array with MIPS share of each Pe available to the schedulerpublic double cloudletSubmit(Cloudlet cl)
cloudletSubmit
in class CloudletSchedulerTimeShared
cl
- the clpublic double cloudletSubmit(Cloudlet cl, double fileTransferTime)
cloudletSubmit
in class CloudletSchedulerTimeShared
cl
- the clfileTransferTime
- the file transfer timepublic void cloudletFinish(ResCloudlet rcl)
cloudletFinish
in class CloudletSchedulerTimeShared
rcl
- finished cloudletpublic double getTotalUtilizationOfCpu(double time)
getTotalUtilizationOfCpu
in class CloudletSchedulerTimeShared
time
- the timepublic List<Double> getCurrentRequestedMips()
getCurrentRequestedMips
in class CloudletSchedulerTimeShared
public double getTotalCurrentRequestedMipsForCloudlet(ResCloudlet rcl, double time)
getTotalCurrentRequestedMipsForCloudlet
in class CloudletSchedulerTimeShared
rcl
- the rcltime
- the timepublic double getTotalCurrentAvailableMipsForCloudlet(ResCloudlet rcl, List<Double> mipsShare)
getTotalCurrentAvailableMipsForCloudlet
in class CloudletSchedulerTimeShared
rcl
- the rclmipsShare
- the mips sharepublic double getTotalCurrentAllocatedMipsForCloudlet(ResCloudlet rcl, double time)
getTotalCurrentAllocatedMipsForCloudlet
in class CloudletSchedulerTimeShared
rcl
- the rcltime
- the timepublic void updateUnderAllocatedMipsForCloudlet(ResCloudlet rcl, double mips)
rcl
- the rglmips
- the mipspublic double getEstimatedFinishTime(ResCloudlet rcl, double time)
rcl
- the rcltime
- the timepublic int getTotalCurrentMips()
public void setTotalMips(double mips)
mips
- the new total mipspublic double getTotalMips()
public void setNumberOfPes(int pesNumber)
pesNumber
- the new pes numberpublic int getNumberOfPes()
public void setMips(double mips)
mips
- the new mipspublic double getMips()
public void setUnderAllocatedMips(Map<String,Double> underAllocatedMips)
underAllocatedMips
- the under allocated mipspublic Map<String,Double> getUnderAllocatedMips()
protected double getCachePreviousTime()
protected void setCachePreviousTime(double cachePreviousTime)
cachePreviousTime
- the new cache previous timeprotected List<Double> getCacheCurrentRequestedMips()
Copyright © 2012 The Cloud Computing and Distributed Systems (CLOUDS) Laboratory, The University of Melbourne. All Rights Reserved.