hu.mta.sztaki.lpds.cloud.simulator.iaas.vmscheduling
Class QueueingData

java.lang.Object
  extended by hu.mta.sztaki.lpds.cloud.simulator.iaas.vmscheduling.QueueingData

public class QueueingData
extends Object

The data stored about a single queued VM request.

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

Field Summary
 ResourceConstraints cumulativeRC
          All VMs in the request should have this much resources in total
 ResourceConstraints queuedRC
          A single VM should have this much resources allocated to it
 Repository queuedRepo
          The repository that is storing the VM's virtual appliance.
 VirtualMachine[] queuedVMs
          The VMs to be placed on a PM
 long receivedTime
          The time stamp when the VM request has been received by the VM scheduler
 Map<String,Object> schedulingConstraints
          Data for custom schedulers (e.g., like specific placement requirements - please put me on this machine and this machine only), if null then there is no data.
 
Constructor Summary
QueueingData(VirtualMachine[] vms, ResourceConstraints rc, Repository vaSource, Map<String,Object> schedulingConstraints, long received)
          Instantiates the queueing data object which auto-populates the derivable fields and safeguards all data stored.
 
Method Summary
 String toString()
          Provides a user readable single line representation of the queued VMs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

queuedVMs

public final VirtualMachine[] queuedVMs
The VMs to be placed on a PM


queuedRC

public final ResourceConstraints queuedRC
A single VM should have this much resources allocated to it


cumulativeRC

public final ResourceConstraints cumulativeRC
All VMs in the request should have this much resources in total


queuedRepo

public final Repository queuedRepo
The repository that is storing the VM's virtual appliance.


schedulingConstraints

public final Map<String,Object> schedulingConstraints
Data for custom schedulers (e.g., like specific placement requirements - please put me on this machine and this machine only), if null then there is no data.


receivedTime

public final long receivedTime
The time stamp when the VM request has been received by the VM scheduler

Constructor Detail

QueueingData

public QueueingData(VirtualMachine[] vms,
                    ResourceConstraints rc,
                    Repository vaSource,
                    Map<String,Object> schedulingConstraints,
                    long received)
Instantiates the queueing data object which auto-populates the derivable fields and safeguards all data stored.

Parameters:
vms - the virtual machine set to work on
rc - the resource requirements for a single VM
vaSource - the repository which hosts the virtual appliance required for the instantiation of the VMs
schedulingConstraints - custom scheduler data
received - the timestamp
Method Detail

toString

public String toString()
Provides a user readable single line representation of the queued VMs. Good for debugging and tracing.

Overrides:
toString in class Object


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