Package cloudreports.models
Class DatacenterRegistry
java.lang.Object
cloudreports.models.DatacenterRegistry
- All Implemented Interfaces:
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:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the datacenter's architecture.double
Gets the datacenter's cost by bandwidth usage.double
Gets the datacenter's cost by RAM usage.double
Gets the datacenter's cost by second of processing.double
Gets the datacenter's cost by storage usage.getHosts()
Gets the datacenter's hosts list.long
getId()
Gets the datacenter's id.double
Gets the datacenter's lower utilization threshold.getName()
Gets the datacenter's name.getOs()
Gets the datacenter's operating system.getSans()
Gets the datacenter's SAN list.double
Gets the datacenter's scheduling interval.double
Gets the datacenter's time zone.double
Gets the datacenter's upper utilization threshold.Gets the class name suffix for Datacenter'sVmAllocationPolicy
.getVmm()
Gets the datacenter's hypervisor.int
hashCode()
boolean
Checks if virtual machines migrations are enabled.void
void
setArchitecture
(String architecture) Sets the datacenter's architecture.void
setCostPerBw
(double costPerBw) Sets the datacenter's cost by bandwidth usage.void
setCostPerMem
(double costPerMem) Sets the datacenter's cost by RAM usage.void
setCostPerSec
(double costPerSec) Sets the datacenter's cost by second of processing.void
setCostPerStorage
(double costPerStorage) Sets the datacenter's cost by storage usage.void
setHosts
(List<HostRegistry> hosts) Sets the datacenter's hosts list.void
setId
(long id) Sets the datacenter's id.void
setLowerUtilizationThreshold
(double lowerUtilizationThreshold) Sets the datacenter's lower utilization threshold.void
Sets the datacenter's name.void
Sets the datacenter's operating system.void
setSans
(List<SanStorageRegistry> sans) Sets the datacenter's SAN list.void
setSchedulingInterval
(double schedulingInterval) Sets the datacenter's scheduling interval.void
setTimeZone
(double timeZone) Sets the datacenter's time zone.void
setUpperUtilizationThreshold
(double upperUtilizationThreshold) Sets the datacenter's upper utilization threshold.void
setVmAllocationPolicy
(String vmAllocationPolicy) Sets the datacenter's allocation policy.void
Sets the datacenter's hypervisor.void
setVmMigration
(boolean vmMigration) Enables/disables virtual machines migrations.toString()
-
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
Gets the datacenter's name.- Returns:
- the datacenter's name.
-
setName
Sets the datacenter's name.- Parameters:
name
- the datacenter's name.
-
getArchitecture
Gets the datacenter's architecture.- Returns:
- the datacenter's architecture.
-
setArchitecture
Sets the datacenter's architecture.- Parameters:
architecture
- the datacenter's architecture.
-
getOs
Gets the datacenter's operating system.- Returns:
- the datacenter's operating system.
-
setOs
Sets the datacenter's operating system.- Parameters:
os
- the datacenter's operating system.
-
getVmm
Gets the datacenter's hypervisor.- Returns:
- the datacenter's hypervisor.
-
setVmm
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
Gets the class name suffix for Datacenter'sVmAllocationPolicy
.- Returns:
-
setVmAllocationPolicy
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
Gets the datacenter's hosts list.- Returns:
- the datacenter's host list.
-
setHosts
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
Gets the datacenter's SAN list.- Returns:
- the datacenter's SAN list.
-
setSans
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
-
hashCode
public int hashCode() -
toString
-
getAmount
- Returns:
- the amount
-
setAmount
- Parameters:
amount
- the amount to set
-