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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGets the amount of virtual machines with this configuration.longgetBw()Gets the virtual machine's amount of bandwidth.Gets the class name suffix of theVm'sCloudletScheduler.longgetId()Gets the virtual machine's id.doublegetMips()Gets the virtual machine's required mips.intgetPes()Gets the virtual machine's number of processing elements.intGets the virtual machine's priority.intgetRam()Gets the virtual machine's amount of RAM.longgetSize()Gets the virtual machine's image size.getVmm()Gets the virtual machine's hypervisor.inthashCode()voidsetAmount(int amount) Sets the amount of virtual machines with this configuration.voidsetBw(long bw) Sets the virtual machine's amount of bandwidth.voidsetCloudletScheduler(String cloudletScheduler) Sets the class name suffix of theVm'sCloudletScheduler.voidsetId(long id) Sets the virtual machine's id.voidsetMips(double mips) Sets the virtual machine's required mips.voidsetPes(int pes) Sets the virtual machine's number of processing elements.voidsetPriority(int priority) Sets the virtual machine's priority.voidsetRam(int ram) Sets the virtual machine's amount of RAM.voidsetSize(long size) Sets the virtual machine's image size.voidSets 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
-