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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the datacenter's architecture.doubleGets the datacenter's cost by bandwidth usage.doubleGets the datacenter's cost by RAM usage.doubleGets the datacenter's cost by second of processing.doubleGets the datacenter's cost by storage usage.getHosts()Gets the datacenter's hosts list.longgetId()Gets the datacenter's id.doubleGets 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.doubleGets the datacenter's scheduling interval.doubleGets the datacenter's time zone.doubleGets the datacenter's upper utilization threshold.Gets the class name suffix for Datacenter'sVmAllocationPolicy.getVmm()Gets the datacenter's hypervisor.inthashCode()booleanChecks if virtual machines migrations are enabled.voidvoidsetArchitecture(String architecture) Sets the datacenter's architecture.voidsetCostPerBw(double costPerBw) Sets the datacenter's cost by bandwidth usage.voidsetCostPerMem(double costPerMem) Sets the datacenter's cost by RAM usage.voidsetCostPerSec(double costPerSec) Sets the datacenter's cost by second of processing.voidsetCostPerStorage(double costPerStorage) Sets the datacenter's cost by storage usage.voidsetHosts(List<HostRegistry> hosts) Sets the datacenter's hosts list.voidsetId(long id) Sets the datacenter's id.voidsetLowerUtilizationThreshold(double lowerUtilizationThreshold) Sets the datacenter's lower utilization threshold.voidSets the datacenter's name.voidSets the datacenter's operating system.voidsetSans(List<SanStorageRegistry> sans) Sets the datacenter's SAN list.voidsetSchedulingInterval(double schedulingInterval) Sets the datacenter's scheduling interval.voidsetTimeZone(double timeZone) Sets the datacenter's time zone.voidsetUpperUtilizationThreshold(double upperUtilizationThreshold) Sets the datacenter's upper utilization threshold.voidsetVmAllocationPolicy(String vmAllocationPolicy) Sets the datacenter's allocation policy.voidSets the datacenter's hypervisor.voidsetVmMigration(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:
trueif virtual machines migrations are enabled;falseotherwise.
-
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
-