org.inria.myriads.snoozecommon.communication.virtualcluster
Class VirtualMachineMetaData

java.lang.Object
  extended by org.inria.myriads.snoozecommon.communication.virtualcluster.VirtualMachineMetaData
All Implemented Interfaces:
Serializable

public final class VirtualMachineMetaData
extends Object
implements Serializable

Virtual machine meta data.

Author:
Eugen Feller
See Also:
Serialized Form

Constructor Summary
VirtualMachineMetaData()
          Constructor.
VirtualMachineMetaData(VirtualMachineMetaData metaData, int numberOfMonitoringEntries)
          Copy constructor.
 
Method Summary
 VirtualMachineErrorCode getErrorCode()
          Returns the error code.
 NetworkAddress getGroupManagerControlDataAddress()
          Sets the group manager control data address.
 String getIpAddress()
          Returns the ip address.
 ArrayList<Double> getRequestedCapacity()
          Returns the requested requirements.
 VirtualMachineStatus getStatus()
          Returns the status.
 LRUCache<Long,VirtualMachineMonitoringData> getUsedCapacity()
          Returns the used capacity.
 VirtualMachineLocation getVirtualMachineLocation()
          Returns the virtual machine location.
 String getXmlRepresentation()
          Returns the XML representation.
 void setErrorCode(VirtualMachineErrorCode errorCode)
          Sets the error code.
 void setGroupManagerControlDataAddress(NetworkAddress groupManagerControlDataAddress)
          Returns the group manager control data address.
 void setIpAddress(String assignedIpAddress)
          Sets the ip address.
 void setRequestedCapacity(ArrayList<Double> requestedCapacity)
          Sets the requested requirements.
 void setStatus(VirtualMachineStatus status)
          Sets the status.
 void setUsedCapacity(LRUCache<Long,VirtualMachineMonitoringData> usedCapacity)
          Sets the used capacity.
 void setVirtualMachineLocation(VirtualMachineLocation location)
          Sets the virtual machine location.
 void setXmlRepresentation(String xmlRepresentation)
          Sets the XML representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualMachineMetaData

public VirtualMachineMetaData()
Constructor.


VirtualMachineMetaData

public VirtualMachineMetaData(VirtualMachineMetaData metaData,
                              int numberOfMonitoringEntries)
Copy constructor.

Parameters:
metaData - The original meta data
numberOfMonitoringEntries - The number of monitoring entries
Method Detail

setRequestedCapacity

public void setRequestedCapacity(ArrayList<Double> requestedCapacity)
Sets the requested requirements.

Parameters:
requestedCapacity - The requested capacity

getRequestedCapacity

public ArrayList<Double> getRequestedCapacity()
Returns the requested requirements.

Returns:
The requested capacity

setXmlRepresentation

public void setXmlRepresentation(String xmlRepresentation)
Sets the XML representation.

Parameters:
xmlRepresentation - The XML representation

getXmlRepresentation

public String getXmlRepresentation()
Returns the XML representation.

Returns:
The XML representation

setUsedCapacity

public void setUsedCapacity(LRUCache<Long,VirtualMachineMonitoringData> usedCapacity)
Sets the used capacity.

Parameters:
usedCapacity - The used capacity

getUsedCapacity

public LRUCache<Long,VirtualMachineMonitoringData> getUsedCapacity()
Returns the used capacity.

Returns:
The used capacity

setStatus

public void setStatus(VirtualMachineStatus status)
Sets the status.

Parameters:
status - The status

getStatus

public VirtualMachineStatus getStatus()
Returns the status.

Returns:
The status

setErrorCode

public void setErrorCode(VirtualMachineErrorCode errorCode)
Sets the error code.

Parameters:
errorCode - The error code

getErrorCode

public VirtualMachineErrorCode getErrorCode()
Returns the error code.

Returns:
The error code

setVirtualMachineLocation

public void setVirtualMachineLocation(VirtualMachineLocation location)
Sets the virtual machine location.

Parameters:
location - The virtual machine location

getVirtualMachineLocation

public VirtualMachineLocation getVirtualMachineLocation()
Returns the virtual machine location.

Returns:
The virtual machine location

setGroupManagerControlDataAddress

public void setGroupManagerControlDataAddress(NetworkAddress groupManagerControlDataAddress)
Returns the group manager control data address.

Parameters:
groupManagerControlDataAddress - The control data address

getGroupManagerControlDataAddress

public NetworkAddress getGroupManagerControlDataAddress()
Sets the group manager control data address.

Returns:
The group manager control data address

setIpAddress

public void setIpAddress(String assignedIpAddress)
Sets the ip address.

Parameters:
assignedIpAddress - The assigned ip address

getIpAddress

public String getIpAddress()
Returns the ip address.

Returns:
The ip address


Copyright © 2012. All Rights Reserved.