Class VmRegistry

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

public final class VmRegistry extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object virtualMachine)
     
    int
    Gets the amount of virtual machines with this configuration.
    long
    Gets the virtual machine's amount of bandwidth.
    Gets the class name suffix of the Vm's CloudletScheduler.
    long
    Gets the virtual machine's id.
    double
    Gets the virtual machine's required mips.
    int
    Gets the virtual machine's number of processing elements.
    int
    Gets the virtual machine's priority.
    int
    Gets the virtual machine's amount of RAM.
    long
    Gets the virtual machine's image size.
    Gets the virtual machine's hypervisor.
    int
     
    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 the Vm's CloudletScheduler.
    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.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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

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

      public void setVmm(String vmm)
      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

      public String getCloudletScheduler()
      Gets the class name suffix of the Vm's CloudletScheduler.
      Returns:
    • setCloudletScheduler

      public void setCloudletScheduler(String cloudletScheduler)
      Sets the class name suffix of the Vm's CloudletScheduler.
      Parameters:
      cloudletScheduler - the class name suffix to set
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object