Package cloudreports.models
Class VmRegistry
java.lang.Object
cloudreports.models.VmRegistry
- All Implemented Interfaces:
Serializable
A virtual machine registry stores information about a specific virtual
machine configuration.
- Since:
- 1.0
- Author:
- Thiago T. Sá
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Gets the amount of virtual machines with this configuration.long
getBw()
Gets the virtual machine's amount of bandwidth.Gets the class name suffix of theVm
'sCloudletScheduler
.long
getId()
Gets the virtual machine's id.double
getMips()
Gets the virtual machine's required mips.int
getPes()
Gets the virtual machine's number of processing elements.int
Gets the virtual machine's priority.int
getRam()
Gets the virtual machine's amount of RAM.long
getSize()
Gets the virtual machine's image size.getVmm()
Gets the virtual machine's hypervisor.int
hashCode()
void
setAmount
(int amount) Sets the amount of virtual machines with this configuration.void
setBw
(long bw) Sets the virtual machine's amount of bandwidth.void
setCloudletScheduler
(String cloudletScheduler) Sets the class name suffix of theVm
'sCloudletScheduler
.void
setId
(long id) Sets the virtual machine's id.void
setMips
(double mips) Sets the virtual machine's required mips.void
setPes
(int pes) Sets the virtual machine's number of processing elements.void
setPriority
(int priority) Sets the virtual machine's priority.void
setRam
(int ram) Sets the virtual machine's amount of RAM.void
setSize
(long size) Sets the virtual machine's image size.void
Sets the virtual machine's hypervisor.toString()
-
Constructor Details
-
VmRegistry
public VmRegistry()
-
-
Method Details
-
getId
public long getId()Gets the virtual machine's id.- Returns:
- the virtual machine's id.
-
setId
public void setId(long id) Sets the virtual machine's id.- Parameters:
id
- the virtual machine's id.
-
getSize
public long getSize()Gets the virtual machine's image size.- Returns:
- the virtual machine's image size.
-
setSize
public void setSize(long size) Sets the virtual machine's image size.- Parameters:
size
- the virtual machine's image size.
-
getPes
public int getPes()Gets the virtual machine's number of processing elements.- Returns:
- the virtual machine's number of processing elements.
-
setPes
public void setPes(int pes) Sets the virtual machine's number of processing elements.- Parameters:
pes
- the virtual machine's number of processing elements.
-
getMips
public double getMips()Gets the virtual machine's required mips.- Returns:
- the virtual machine's required mips.
-
setMips
public void setMips(double mips) Sets the virtual machine's required mips.- Parameters:
mips
- the virtual machine's required mips.
-
getRam
public int getRam()Gets the virtual machine's amount of RAM.- Returns:
- the virtual machine's amount of RAM.
-
setRam
public void setRam(int ram) Sets the virtual machine's amount of RAM.- Parameters:
ram
- the virtual machine's amount of RAM.
-
getBw
public long getBw()Gets the virtual machine's amount of bandwidth.- Returns:
- the virtual machine's amount of bandwidth.
-
setBw
public void setBw(long bw) Sets the virtual machine's amount of bandwidth.- Parameters:
bw
- the virtual machine's amount of bandwidth.
-
getPriority
public int getPriority()Gets the virtual machine's priority.- Returns:
- the virtual machine's priority.
-
setPriority
public void setPriority(int priority) Sets the virtual machine's priority.- Parameters:
priority
- the virtual machine's priority.
-
getVmm
Gets the virtual machine's hypervisor.- Returns:
- the virtual machine's hypervisor.
-
setVmm
Sets the virtual machine's hypervisor.- Parameters:
vmm
- the virtual machine's hypervisor.
-
getAmount
public int getAmount()Gets the amount of virtual machines with this configuration.- Returns:
-
setAmount
public void setAmount(int amount) Sets the amount of virtual machines with this configuration.- Parameters:
amount
- the amount of virtual machines with this configuration.
-
getCloudletScheduler
Gets the class name suffix of theVm
'sCloudletScheduler
.- Returns:
-
setCloudletScheduler
Sets the class name suffix of theVm
'sCloudletScheduler
.- Parameters:
cloudletScheduler
- the class name suffix to set
-
equals
-
hashCode
public int hashCode() -
toString
-