public abstract class VmScheduler extends Object
Constructor and Description |
---|
VmScheduler(List<? extends Pe> pelist)
Creates a new HostAllocationPolicy.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
allocatePesForVm(Vm vm,
List<Double> mipsShare)
Allocates PEs for a VM.
|
void |
deallocatePesForAllVms()
Releases PEs allocated to all the VMs.
|
abstract void |
deallocatePesForVm(Vm vm)
Releases PEs allocated to a VM.
|
List<Double> |
getAllocatedMipsForVm(Vm vm)
Returns the MIPS share of each Pe that is allocated to a given VM.
|
double |
getAvailableMips()
Gets the free mips.
|
double |
getMaxAvailableMips()
Returns maximum available MIPS among all the PEs.
|
protected Map<String,List<Double>> |
getMipsMap()
Gets the mips map.
|
double |
getPeCapacity()
Returns PE capacity in MIPS.
|
<T extends Pe> |
getPeList()
Gets the vm list.
|
Map<String,List<Pe>> |
getPeMap()
Gets the pe map.
|
List<Pe> |
getPesAllocatedForVM(Vm vm)
Gets the pes allocated for vm.
|
double |
getTotalAllocatedMipsForVm(Vm vm)
Gets the total allocated MIPS for a VM over all the PEs.
|
List<String> |
getVmsMigratingIn()
Gets the vms migrating in.
|
List<String> |
getVmsMigratingOut()
Gets the vms in migration.
|
protected void |
setAvailableMips(double availableMips)
Sets the free mips.
|
protected void |
setMipsMap(Map<String,List<Double>> mipsMap)
Sets the mips map.
|
protected <T extends Pe> |
setPeList(List<T> peList)
Sets the vm list.
|
protected void |
setPeMap(Map<String,List<Pe>> peMap)
Sets the pe map.
|
protected void |
setVmsMigratingIn(List<String> vmsMigratingIn)
Sets the vms migrating in.
|
protected void |
setVmsMigratingOut(List<String> vmsInMigration)
Sets the vms in migration.
|
public abstract boolean allocatePesForVm(Vm vm, List<Double> mipsShare)
vm
- the vmmipsShare
- the mips sharepublic abstract void deallocatePesForVm(Vm vm)
vm
- the vmpublic void deallocatePesForAllVms()
public List<Pe> getPesAllocatedForVM(Vm vm)
vm
- the vmpublic List<Double> getAllocatedMipsForVm(Vm vm)
vm
- the vmpublic double getTotalAllocatedMipsForVm(Vm vm)
vm
- the vmpublic double getMaxAvailableMips()
public double getPeCapacity()
public <T extends Pe> List<T> getPeList()
T
- the generic typeprotected <T extends Pe> void setPeList(List<T> peList)
T
- the generic typepeList
- the pe listprotected void setMipsMap(Map<String,List<Double>> mipsMap)
mipsMap
- the mips mappublic double getAvailableMips()
protected void setAvailableMips(double availableMips)
availableMips
- the new free mipspublic List<String> getVmsMigratingOut()
protected void setVmsMigratingOut(List<String> vmsInMigration)
vmsInMigration
- the new vms migrating outpublic List<String> getVmsMigratingIn()
protected void setVmsMigratingIn(List<String> vmsMigratingIn)
vmsMigratingIn
- the new vms migrating inCopyright © 2012 The Cloud Computing and Distributed Systems (CLOUDS) Laboratory, The University of Melbourne. All Rights Reserved.