Class DatacenterRegistry

java.lang.Object
cloudreports.models.DatacenterRegistry
All Implemented Interfaces:
Serializable

public final class DatacenterRegistry
extends Object
implements Serializable
A datacenter registry stores information about a specific datacenter. It contains the list of hosts owned by the datacenter, cost values and other general specifications.
Since:
1.0
Author:
Thiago T. Sá
See Also:
Serialized Form
  • Constructor Details

    • DatacenterRegistry

      public DatacenterRegistry()
  • Method Details

    • getId

      public long getId()
      Gets the datacenter's id.
      Returns:
      the datacenter's id.
    • setId

      public void setId​(long id)
      Sets the datacenter's id.
      Parameters:
      id - the datacenter's id.
    • getName

      public String getName()
      Gets the datacenter's name.
      Returns:
      the datacenter's name.
    • setName

      public void setName​(String name)
      Sets the datacenter's name.
      Parameters:
      name - the datacenter's name.
    • getArchitecture

      public String getArchitecture()
      Gets the datacenter's architecture.
      Returns:
      the datacenter's architecture.
    • setArchitecture

      public void setArchitecture​(String architecture)
      Sets the datacenter's architecture.
      Parameters:
      architecture - the datacenter's architecture.
    • getOs

      public String getOs()
      Gets the datacenter's operating system.
      Returns:
      the datacenter's operating system.
    • setOs

      public void setOs​(String os)
      Sets the datacenter's operating system.
      Parameters:
      os - the datacenter's operating system.
    • getVmm

      public String getVmm()
      Gets the datacenter's hypervisor.
      Returns:
      the datacenter's hypervisor.
    • setVmm

      public void setVmm​(String vmm)
      Sets the datacenter's hypervisor.
      Parameters:
      vmm - the datacenter's hypervisor.
    • getTimeZone

      public double getTimeZone()
      Gets the datacenter's time zone.
      Returns:
      the datacenter's time zone.
    • setTimeZone

      public void setTimeZone​(double timeZone)
      Sets the datacenter's time zone.
      Parameters:
      timeZone - the datacenter's time zone.
    • getVmAllocationPolicy

      public String getVmAllocationPolicy()
      Gets the class name suffix for Datacenter's VmAllocationPolicy.
      Returns:
    • setVmAllocationPolicy

      public void setVmAllocationPolicy​(String vmAllocationPolicy)
      Sets the datacenter's allocation policy.
      Parameters:
      vmAllocationPolicy - the datacenter's allocation policy.
    • isVmMigration

      public boolean isVmMigration()
      Checks if virtual machines migrations are enabled.
      Returns:
      true if virtual machines migrations are enabled; false otherwise.
    • setVmMigration

      public void setVmMigration​(boolean vmMigration)
      Enables/disables virtual machines migrations.
      Parameters:
      vmMigration - indicates if virtual machines migrations are enabled or not
    • getHosts

      public List<HostRegistry> getHosts()
      Gets the datacenter's hosts list.
      Returns:
      the datacenter's host list.
    • setHosts

      public void setHosts​(List<HostRegistry> hosts)
      Sets the datacenter's hosts list.
      Parameters:
      hosts - the datacenter's host list.
    • getCostPerSec

      public double getCostPerSec()
      Gets the datacenter's cost by second of processing.
      Returns:
      the datacenter's cost by second of processing.
    • setCostPerSec

      public void setCostPerSec​(double costPerSec)
      Sets the datacenter's cost by second of processing.
      Parameters:
      costPerSec - the datacenter's cost by second of processing.
    • getCostPerMem

      public double getCostPerMem()
      Gets the datacenter's cost by RAM usage.
      Returns:
      the datacenter's cost by RAM usage.
    • setCostPerMem

      public void setCostPerMem​(double costPerMem)
      Sets the datacenter's cost by RAM usage.
      Parameters:
      costPerMem - the datacenter's cost by RAM usage.
    • getCostPerStorage

      public double getCostPerStorage()
      Gets the datacenter's cost by storage usage.
      Returns:
      the datacenter's cost by storage usage.
    • setCostPerStorage

      public void setCostPerStorage​(double costPerStorage)
      Sets the datacenter's cost by storage usage.
      Parameters:
      costPerStorage - the datacenter's cost by storage usage.
    • getCostPerBw

      public double getCostPerBw()
      Gets the datacenter's cost by bandwidth usage.
      Returns:
      the datacenter's cost by bandwidth usage.
    • setCostPerBw

      public void setCostPerBw​(double costPerBw)
      Sets the datacenter's cost by bandwidth usage.
      Parameters:
      costPerBw - the datacenter's cost by bandwidth usage.
    • getSans

      public List<SanStorageRegistry> getSans()
      Gets the datacenter's SAN list.
      Returns:
      the datacenter's SAN list.
    • setSans

      public void setSans​(List<SanStorageRegistry> sans)
      Sets the datacenter's SAN list.
      Parameters:
      sans - the datacenter's SAN list.
    • getSchedulingInterval

      public double getSchedulingInterval()
      Gets the datacenter's scheduling interval.
      Returns:
      the datacenter's scheduling interval.
    • setSchedulingInterval

      public void setSchedulingInterval​(double schedulingInterval)
      Sets the datacenter's scheduling interval.
      Parameters:
      schedulingInterval - the datacenter's scheduling interval.
    • getUpperUtilizationThreshold

      public double getUpperUtilizationThreshold()
      Gets the datacenter's upper utilization threshold.
      Returns:
      the datacenter's upper utilization threshold.
    • setUpperUtilizationThreshold

      public void setUpperUtilizationThreshold​(double upperUtilizationThreshold)
      Sets the datacenter's upper utilization threshold.
      Parameters:
      upperUtilizationThreshold - the datacenter's upper utilization threshold.
    • getLowerUtilizationThreshold

      public double getLowerUtilizationThreshold()
      Gets the datacenter's lower utilization threshold.
      Returns:
      the datacenter's lower utilization threshold.
    • setLowerUtilizationThreshold

      public void setLowerUtilizationThreshold​(double lowerUtilizationThreshold)
      Sets the datacenter's lower utilization threshold.
      Parameters:
      lowerUtilizationThreshold - the datacenter's lower utilization threshold.
    • equals

      public boolean equals​(Object datacenter)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getAmount

      public Integer getAmount()
      Returns:
      the amount
    • setAmount

      public void setAmount​(Integer amount)
      Parameters:
      amount - the amount to set