hu.mta.sztaki.lpds.cloud.simulator.iaas
Class PhysicalMachine.ResourceAllocation

java.lang.Object
  extended by hu.mta.sztaki.lpds.cloud.simulator.Timed
      extended by hu.mta.sztaki.lpds.cloud.simulator.DeferredEvent
          extended by hu.mta.sztaki.lpds.cloud.simulator.iaas.PhysicalMachine.ResourceAllocation
All Implemented Interfaces:
Comparable<Timed>
Enclosing class:
PhysicalMachine

public static class PhysicalMachine.ResourceAllocation
extends DeferredEvent


Field Summary
 ResourceConstraints allocated
           
 PhysicalMachine host
           
private  int myPromisedIndex
           
private  ResourceConstraints realAllocated
           
private  VirtualMachine user
           
 
Constructor Summary
private PhysicalMachine.ResourceAllocation(PhysicalMachine offerer, ResourceConstraints realAlloc, ResourceConstraints alloc, int until)
           
 
Method Summary
 void cancel()
           
protected  void eventAction()
           
 boolean isAvailable()
           
 boolean isUnUsed()
           
(package private)  void release()
           
 String toString()
           
(package private)  void use(VirtualMachine vm)
           
 
Methods inherited from class hu.mta.sztaki.lpds.cloud.simulator.DeferredEvent
isCancelled, tick
 
Methods inherited from class hu.mta.sztaki.lpds.cloud.simulator.Timed
compareTo, fire, getFireCount, getFrequency, getNextEvent, getNextFire, isSubscribed, jumpTime, nextEventDistance, resetTimed, setBackPreference, simulateUntil, simulateUntilLastEvent, skipEventsTill, subscribe, unsubscribe, updateFrequency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

host

public final PhysicalMachine host

allocated

public final ResourceConstraints allocated

realAllocated

private final ResourceConstraints realAllocated

user

private VirtualMachine user

myPromisedIndex

private final int myPromisedIndex
Constructor Detail

PhysicalMachine.ResourceAllocation

private PhysicalMachine.ResourceAllocation(PhysicalMachine offerer,
                                           ResourceConstraints realAlloc,
                                           ResourceConstraints alloc,
                                           int until)
Method Detail

eventAction

protected void eventAction()
Specified by:
eventAction in class DeferredEvent

cancel

public void cancel()
Overrides:
cancel in class DeferredEvent

use

void use(VirtualMachine vm)
   throws VMManager.VMManagementException
Throws:
VMManager.VMManagementException

release

void release()

isUnUsed

public boolean isUnUsed()

isAvailable

public boolean isAvailable()

toString

public String toString()
Overrides:
toString in class Timed


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