public class VmSchedulerTimeShared extends VmScheduler
| Constructor and Description |
|---|
VmSchedulerTimeShared(java.util.List<? extends Pe> pelist)
Instantiates a new vm scheduler time shared.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allocatePesForVm(java.lang.String vmUid,
java.util.List<java.lang.Double> mipsShareRequested)
Allocate pes for vm.
|
boolean |
allocatePesForVm(Vm vm,
java.util.List<java.lang.Double> mipsShareRequested)
Allocates PEs for a VM.
|
void |
deallocatePesForAllVms()
Releases PEs allocated to all the VMs.
|
void |
deallocatePesForVm(Vm vm)
Releases PEs allocated to a VM.
|
double |
getMaxAvailableMips()
Returns maximum available MIPS among all the PEs.
|
protected java.util.Map<java.lang.String,java.util.List<java.lang.Double>> |
getMipsMapRequested()
Gets the mips map requested.
|
protected int |
getPesInUse()
Gets the pes in use.
|
protected void |
setMipsMapRequested(java.util.Map<java.lang.String,java.util.List<java.lang.Double>> mipsMapRequested)
Sets the mips map requested.
|
protected void |
setPesInUse(int pesInUse)
Sets the pes in use.
|
protected void |
updatePeProvisioning()
Update allocation of VMs on PEs.
|
getAllocatedMipsForVm, getAvailableMips, getMipsMap, getPeCapacity, getPeList, getPeMap, getPesAllocatedForVM, getTotalAllocatedMipsForVm, getVmsMigratingIn, getVmsMigratingOut, setAvailableMips, setMipsMap, setPeList, setPeMap, setVmsMigratingIn, setVmsMigratingOutpublic VmSchedulerTimeShared(java.util.List<? extends Pe> pelist)
pelist - the pelistpublic boolean allocatePesForVm(Vm vm, java.util.List<java.lang.Double> mipsShareRequested)
VmSchedulerallocatePesForVm in class VmSchedulervm - the vmmipsShareRequested - the mips shareprotected boolean allocatePesForVm(java.lang.String vmUid,
java.util.List<java.lang.Double> mipsShareRequested)
vmUid - the vm uidmipsShareRequested - the mips share requestedprotected void updatePeProvisioning()
public void deallocatePesForVm(Vm vm)
VmSchedulerdeallocatePesForVm in class VmSchedulervm - the vmpublic void deallocatePesForAllVms()
deallocatePesForAllVms in class VmSchedulerpublic double getMaxAvailableMips()
getMaxAvailableMips in class VmSchedulerprotected void setPesInUse(int pesInUse)
pesInUse - the new pes in useprotected int getPesInUse()
protected java.util.Map<java.lang.String,java.util.List<java.lang.Double>> getMipsMapRequested()
protected void setMipsMapRequested(java.util.Map<java.lang.String,java.util.List<java.lang.Double>> mipsMapRequested)
mipsMapRequested - the mips map requested