hu.mta.sztaki.lpds.cloud.simulator.iaas
Interface VirtualMachine.StateChange

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"

Method Summary
 void stateChanged(VirtualMachine.State oldState, VirtualMachine.State newState)
          If the state of a VM is changed this function is called on all subscribing implementations.
 

Method Detail

stateChanged

void stateChanged(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 issued
newState - the state after the change took effect


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