public class VmSchedulerSpaceShared extends VmScheduler
Constructor and Description |
---|
VmSchedulerSpaceShared(List<? extends Pe> pelist)
Instantiates a new vm scheduler space shared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allocatePesForVm(Vm vm,
List<Double> mipsShare)
Allocates PEs for a VM.
|
void |
deallocatePesForVm(Vm vm)
Releases PEs allocated to a VM.
|
protected List<Pe> |
getFreePes()
Gets the free pes vector.
|
protected Map<String,List<Pe>> |
getPeAllocationMap()
Gets the pe allocation map.
|
protected void |
setFreePes(List<Pe> freePes)
Sets the free pes vector.
|
protected void |
setPeAllocationMap(Map<String,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, setVmsMigratingOut
public boolean allocatePesForVm(Vm vm, List<Double> mipsShare)
VmScheduler
allocatePesForVm
in class VmScheduler
vm
- the vmmipsShare
- the mips sharepublic void deallocatePesForVm(Vm vm)
VmScheduler
deallocatePesForVm
in class VmScheduler
vm
- the vmprotected void setPeAllocationMap(Map<String,List<Pe>> peAllocationMap)
peAllocationMap
- the pe allocation mapprotected Map<String,List<Pe>> getPeAllocationMap()
protected void setFreePes(List<Pe> freePes)
freePes
- the new free pes vectorCopyright © 2012 The Cloud Computing and Distributed Systems (CLOUDS) Laboratory, The University of Melbourne. All Rights Reserved.