org.inria.myriads.snoozecommon.communication.localcontroller
Class LocalControllerDescription

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

public final class LocalControllerDescription
extends Object
implements Serializable

Local controller description.

Author:
Eugen Feller
See Also:
Serialized Form

Constructor Summary
LocalControllerDescription()
          Constructor.
LocalControllerDescription(LocalControllerDescription original, int numberOfMonitoringEntries)
          Copy constructor.
 
Method Summary
 NetworkAddress getControlDataAddress()
          Returns the control data address.
 HypervisorSettings getHypervisorSettings()
          Returns the hypervisor port.
 String getId()
          Returns the local controller identifier.
 LocalControllerStatus getStatus()
          Returns the status.
 ArrayList<Double> getTotalCapacity()
          Returns the total capacity.
 HashMap<String,VirtualMachineMetaData> getVirtualMachineMetaData()
          Returns virtual machine meta data.
 WakeupSettings getWakeupSettings()
          Returns the wakeup settings.
 void setControlDataAddress(NetworkAddress controlDataAddress)
          Sets the control data address.
 void setHypervisorSettings(HypervisorSettings hypervisorSettings)
          Sets the hypervisor settings.
 void setId(String id)
          Sets the id.
 void setStatus(LocalControllerStatus status)
          Sets the status.
 void setTotalCapacity(ArrayList<Double> totalCapacity)
          Sets the capacity vector.
 void setVirtualMachineMetaData(HashMap<String,VirtualMachineMetaData> virtualMachineMetaData)
          Sets virtual machine meta data.
 void setWakeupSettings(WakeupSettings wakeupSettings)
          Sets the wakeup settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalControllerDescription

public LocalControllerDescription()
Constructor.


LocalControllerDescription

public LocalControllerDescription(LocalControllerDescription original,
                                  int numberOfMonitoringEntries)
Copy constructor.

Parameters:
original - The original description
numberOfMonitoringEntries - The number of monitoring entries
Method Detail

setTotalCapacity

public void setTotalCapacity(ArrayList<Double> totalCapacity)
Sets the capacity vector.

Parameters:
totalCapacity - The total capacity

getTotalCapacity

public ArrayList<Double> getTotalCapacity()
Returns the total capacity.

Returns:
List of doubles

setId

public void setId(String id)
Sets the id.

Parameters:
id - The identifier

getId

public String getId()
Returns the local controller identifier.

Returns:
The identifier

getControlDataAddress

public NetworkAddress getControlDataAddress()
Returns the control data address.

Returns:
The control data address

setControlDataAddress

public void setControlDataAddress(NetworkAddress controlDataAddress)
Sets the control data address.

Parameters:
controlDataAddress - The control data address

setHypervisorSettings

public void setHypervisorSettings(HypervisorSettings hypervisorSettings)
Sets the hypervisor settings.

Parameters:
hypervisorSettings - The hypervisor settings

getHypervisorSettings

public HypervisorSettings getHypervisorSettings()
Returns the hypervisor port.

Returns:
The hypervisor settings

setStatus

public void setStatus(LocalControllerStatus status)
Sets the status.

Parameters:
status - The status

getStatus

public LocalControllerStatus getStatus()
Returns the status.

Returns:
The status

setVirtualMachineMetaData

public void setVirtualMachineMetaData(HashMap<String,VirtualMachineMetaData> virtualMachineMetaData)
Sets virtual machine meta data.

Parameters:
virtualMachineMetaData - The meta data

getVirtualMachineMetaData

public HashMap<String,VirtualMachineMetaData> getVirtualMachineMetaData()
Returns virtual machine meta data.

Returns:
The meta data

setWakeupSettings

public void setWakeupSettings(WakeupSettings wakeupSettings)
Sets the wakeup settings.

Parameters:
wakeupSettings - The wakeup settings

getWakeupSettings

public WakeupSettings getWakeupSettings()
Returns the wakeup settings.

Returns:
The wakeup settings


Copyright © 2012. All Rights Reserved.