public class VmSchedulerSpaceShared extends VmScheduler
| Constructor and Description |
|---|
VmSchedulerSpaceShared(java.util.List<? extends Pe> pelist)
Instantiates a new vm scheduler space shared.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allocatePesForVm(Vm vm,
java.util.List<java.lang.Double> mipsShare)
Allocates PEs for a VM.
|
void |
deallocatePesForVm(Vm vm)
Releases PEs allocated to a VM.
|
protected java.util.List<Pe> |
getFreePes()
Gets the free pes vector.
|
protected java.util.Map<java.lang.String,java.util.List<Pe>> |
getPeAllocationMap()
Gets the pe allocation map.
|
protected void |
setFreePes(java.util.List<Pe> freePes)
Sets the free pes vector.
|
protected void |
setPeAllocationMap(java.util.Map<java.lang.String,java.util.List<Pe>> peAllocationMap)
Sets the pe allocation map.
|
deallocatePesForAllVms, getAllocatedMipsForVm, getAvailableMips, getMaxAvailableMips, getMipsMap, getPeCapacity, getPeList, getPeMap, getPesAllocatedForVM, getTotalAllocatedMipsForVm, getVmsMigratingIn, getVmsMigratingOut, setAvailableMips, setMipsMap, setPeList, setPeMap, setVmsMigratingIn, setVmsMigratingOutpublic VmSchedulerSpaceShared(java.util.List<? extends Pe> pelist)
pelist - the pelistpublic boolean allocatePesForVm(Vm vm, java.util.List<java.lang.Double> mipsShare)
VmSchedulerallocatePesForVm in class VmSchedulervm - the vmmipsShare - the mips sharepublic void deallocatePesForVm(Vm vm)
VmSchedulerdeallocatePesForVm in class VmSchedulervm - the vmprotected void setPeAllocationMap(java.util.Map<java.lang.String,java.util.List<Pe>> peAllocationMap)
peAllocationMap - the pe allocation mapprotected java.util.Map<java.lang.String,java.util.List<Pe>> getPeAllocationMap()
protected void setFreePes(java.util.List<Pe> freePes)
freePes - the new free pes vectorprotected java.util.List<Pe> getFreePes()