hu.mta.sztaki.lpds.cloud.simulator.iaas.pmscheduling
Class MultiPMController.CapacityChangeManager

java.lang.Object
  extended by hu.mta.sztaki.lpds.cloud.simulator.iaas.pmscheduling.MultiPMController.CapacityChangeManager
All Implemented Interfaces:
PhysicalMachine.StateChangeListener, VMManager.CapacityChangeEvent<ResourceConstraints>
Enclosing class:
MultiPMController

private class MultiPMController.CapacityChangeManager
extends Object
implements VMManager.CapacityChangeEvent<ResourceConstraints>, PhysicalMachine.StateChangeListener


Field Summary
(package private)  PhysicalMachine observed
           
 
Constructor Summary
MultiPMController.CapacityChangeManager(PhysicalMachine pm)
           
 
Method Summary
 void capacityChanged(ResourceConstraints newCapacity, List<ResourceConstraints> newlyFreeCapacities)
           
 void stateChanged(PhysicalMachine pm, PhysicalMachine.State oldState, PhysicalMachine.State newState)
           
private  void switchoffmachine()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

observed

final PhysicalMachine observed
Constructor Detail

MultiPMController.CapacityChangeManager

public MultiPMController.CapacityChangeManager(PhysicalMachine pm)
Method Detail

switchoffmachine

private void switchoffmachine()

capacityChanged

public void capacityChanged(ResourceConstraints newCapacity,
                            List<ResourceConstraints> newlyFreeCapacities)
Specified by:
capacityChanged in interface VMManager.CapacityChangeEvent<ResourceConstraints>

stateChanged

public void stateChanged(PhysicalMachine pm,
                         PhysicalMachine.State oldState,
                         PhysicalMachine.State newState)
Specified by:
stateChanged in interface PhysicalMachine.StateChangeListener


Copyright © 2012–2015 University of Innsbruck & MTA SZTAKI. All rights reserved.