hu.mta.sztaki.lpds.cloud.simulator.iaas
Interface VirtualMachine.StateChange
- All Known Implementing Classes:
- PhysicalMachine.ResourceAllocation
- Enclosing class:
- VirtualMachine
public static interface VirtualMachine.StateChange
This interface helps to receive events on status changes in virtual
machines. One can subscribe to these events by calling the
subscribeStateChange function. Afterwards whenever the VM changes its
state it will automatically notify the subscribed entities.
- Author:
- "Gabor Kecskemeti, Distributed and Parallel Systems Group, University of Innsbruck (c) 2013"
stateChanged
void stateChanged(VirtualMachine vm,
VirtualMachine.State oldState,
VirtualMachine.State newState)
- If the state of a VM is changed this function is called on all
subscribing implementations.
- Parameters:
oldState
- the state before the change was issuednewState
- the state after the change took effect
Copyright © 2012–2015 University of Innsbruck & MTA SZTAKI. All rights reserved.