|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthu.mta.sztaki.lpds.cloud.simulator.iaas.pmscheduling.SchedulingDependentMachines.CapacityChangeManager
private class SchedulingDependentMachines.CapacityChangeManager
The main PM control mechanisms are implemented in this class The class basically controls a single PM. It switches off its PM when the PM's free resources reach its complete resource set and there are no VM requests queuing at the IaaS service's VM scheduler.
| Field Summary | |
|---|---|
(package private) PhysicalMachine |
observed
the physical machine that this capacity manager will target with its operations |
| Constructor Summary | |
|---|---|
SchedulingDependentMachines.CapacityChangeManager(PhysicalMachine pm)
This constructor is expected to be used once a PM is registered to the parent IaaSService. |
|
| Method Summary | |
|---|---|
private void |
cancelEvents()
if the PM gets dropped from the parent IaaSService then we no longer need to control its behavior. |
void |
capacityChanged(ResourceConstraints newCapacity,
List<ResourceConstraints> newlyFreeCapacities)
This function is called when the observed PM has newly freed up resources. |
void |
stateChanged(PhysicalMachine pm,
PhysicalMachine.State oldState,
PhysicalMachine.State newState)
This function is called when the PM's power state changes. |
private void |
switchoffmachine()
Allows the observed PM to be switched off and its exceptions handled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final PhysicalMachine observed
| Constructor Detail |
|---|
public SchedulingDependentMachines.CapacityChangeManager(PhysicalMachine pm)
pm - the PM to be managed to follow the demand patterns of the
VM requests to the IaaSService.| Method Detail |
|---|
private void cancelEvents()
private void switchoffmachine()
public void capacityChanged(ResourceConstraints newCapacity,
List<ResourceConstraints> newlyFreeCapacities)
capacityChanged in interface VMManager.CapacityChangeEvent<ResourceConstraints>newCapacity - the size of the new capacity in terms of physical
resourcesnewlyFreeCapacities - the list of those objects (representing the computing
capacity of the particular VMManager) that were
added/removed during the change
public void stateChanged(PhysicalMachine pm,
PhysicalMachine.State oldState,
PhysicalMachine.State newState)
stateChanged in interface PhysicalMachine.StateChangeListenerpm - the physical machine that is involved in the state changeoldState - the state the PM was in before this state change event was
deliverednewState - the new state the PM will be in after the event is
complete
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||