hu.mta.sztaki.lpds.cloud.simulator.iaas.resourcemodel
Class ConsumptionEventAdapter
java.lang.Object
hu.mta.sztaki.lpds.cloud.simulator.iaas.resourcemodel.ConsumptionEventAdapter
- All Implemented Interfaces:
- ResourceConsumption.ConsumptionEvent
- Direct Known Subclasses:
- PhysicalMachine.PowerStateDelayer, VirtualMachine.InitialTransferEvent
public class ConsumptionEventAdapter
- extends Object
- implements ResourceConsumption.ConsumptionEvent
Method Summary |
void |
conCancelled(ResourceConsumption problematic)
This function is called when the resource consumption cannot be
handled properly |
void |
conComplete()
This function is called when the resource consumption represented by
the ResourceConsumption object is fulfilled |
boolean |
isCancelled()
|
boolean |
isCompleted()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cancelled
private boolean cancelled
completed
private boolean completed
ConsumptionEventAdapter
public ConsumptionEventAdapter()
conComplete
public void conComplete()
- Description copied from interface:
ResourceConsumption.ConsumptionEvent
- This function is called when the resource consumption represented by
the ResourceConsumption object is fulfilled
- Specified by:
conComplete
in interface ResourceConsumption.ConsumptionEvent
conCancelled
public void conCancelled(ResourceConsumption problematic)
- Description copied from interface:
ResourceConsumption.ConsumptionEvent
- This function is called when the resource consumption cannot be
handled properly
- Specified by:
conCancelled
in interface ResourceConsumption.ConsumptionEvent
isCancelled
public boolean isCancelled()
isCompleted
public boolean isCompleted()
Copyright © 2012–2015 University of Innsbruck & MTA SZTAKI. All rights reserved.