public class VmSchedulerTimeShared extends VmScheduler
Constructor and Description |
---|
VmSchedulerTimeShared(List<? extends Pe> pelist)
Instantiates a new vm scheduler time shared.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
allocatePesForVm(String vmUid,
List<Double> mipsShareRequested)
Allocate pes for vm.
|
boolean |
allocatePesForVm(Vm vm,
List<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 Map<String,List<Double>> |
getMipsMapRequested()
Gets the mips map requested.
|
protected int |
getPesInUse()
Gets the pes in use.
|
protected void |
setMipsMapRequested(Map<String,List<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, setVmsMigratingOut
public boolean allocatePesForVm(Vm vm, List<Double> mipsShareRequested)
VmScheduler
allocatePesForVm
in class VmScheduler
vm
- the vmmipsShareRequested
- the mips shareprotected boolean allocatePesForVm(String vmUid, List<Double> mipsShareRequested)
vmUid
- the vm uidmipsShareRequested
- the mips share requestedprotected void updatePeProvisioning()
public void deallocatePesForVm(Vm vm)
VmScheduler
deallocatePesForVm
in class VmScheduler
vm
- the vmpublic void deallocatePesForAllVms()
deallocatePesForAllVms
in class VmScheduler
public double getMaxAvailableMips()
getMaxAvailableMips
in class VmScheduler
protected void setPesInUse(int pesInUse)
pesInUse
- the new pes in useprotected int getPesInUse()
protected Map<String,List<Double>> getMipsMapRequested()
Copyright © 2012 The Cloud Computing and Distributed Systems (CLOUDS) Laboratory, The University of Melbourne. All Rights Reserved.