hu.mta.sztaki.lpds.cloud.simulator.iaas
Class VirtualMachine.InitialTransferEvent

java.lang.Object
  extended by hu.mta.sztaki.lpds.cloud.simulator.iaas.resourcemodel.ConsumptionEventAdapter
      extended by hu.mta.sztaki.lpds.cloud.simulator.iaas.VirtualMachine.InitialTransferEvent
All Implemented Interfaces:
ResourceConsumption.ConsumptionEvent
Enclosing class:
VirtualMachine

 class VirtualMachine.InitialTransferEvent
extends ConsumptionEventAdapter

The event that will be received upon the completion of the VA's copy from vasource to vatarget.

Author:
"Gabor Kecskemeti, Laboratory of Parallel and Distributed Systems, MTA SZTAKI (c) 2012"

Field Summary
(package private)  String diskid
          the expected id of the storage object in the target repository
(package private)  VirtualMachine.EventSetup esetup
          the event to be fired after the transfer is complete
(package private)  Repository target
          the target repository where the VA is expected to turn up
 
Constructor Summary
VirtualMachine.InitialTransferEvent(Repository t, VirtualMachine.EventSetup event, String did)
          Initiates the event handler object
 
Method Summary
 void conComplete()
          stores the newly transferred storage object into the VM's disk field, and then continues with the next step in the VM state management (represented with the event setup)
 
Methods inherited from class hu.mta.sztaki.lpds.cloud.simulator.iaas.resourcemodel.ConsumptionEventAdapter
conCancelled, isCancelled, isCompleted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

final Repository target
the target repository where the VA is expected to turn up


esetup

final VirtualMachine.EventSetup esetup
the event to be fired after the transfer is complete


diskid

final String diskid
the expected id of the storage object in the target repository

Constructor Detail

VirtualMachine.InitialTransferEvent

public VirtualMachine.InitialTransferEvent(Repository t,
                                           VirtualMachine.EventSetup event,
                                           String did)
Initiates the event handler object

Parameters:
t - the repository to observe
event - the event to fire after the transfer to the target repo happened
did - the disk id of the newly created storage object in the target repo for the new runnable VA.
Method Detail

conComplete

public void conComplete()
stores the newly transferred storage object into the VM's disk field, and then continues with the next step in the VM state management (represented with the event setup)

Specified by:
conComplete in interface ResourceConsumption.ConsumptionEvent
Overrides:
conComplete in class ConsumptionEventAdapter


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