Class CustomerRegistry

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

public final class CustomerRegistry
extends Object
implements Serializable
A customer registry stores information about a specific customer. It contains the list of virtual machines owned by the customer as well as its resources utilization profile.
Since:
1.0
Author:
Thiago T. Sá
See Also:
Serialized Form
  • Constructor Details

    • CustomerRegistry

      public CustomerRegistry()
    • CustomerRegistry

      public CustomerRegistry​(String name)
      Creates a new customer registry with the given name.
      Parameters:
      name - the name of the customer registry.
      Since:
      1.0
  • Method Details

    • getId

      public long getId()
      Gets the customer's id.
      Returns:
      the customer's id.
    • setId

      public void setId​(long id)
      Sets the customer's id.
      Parameters:
      id - the customer's id.
    • getName

      public String getName()
      Gets the customer's name.
      Returns:
      the customer's name.
    • setName

      public void setName​(String name)
      Sets the customer's name.
      Parameters:
      name - the customer's name.
    • getVms

      public List<VmRegistry> getVms()
      Gets the list of Vms owned by this customer.
      Returns:
    • setVms

      public void setVms​(List<VmRegistry> vms)
      Sets the list of Vms owned by this customer.
      Parameters:
      vms - the customer's virtual machines list to set.
    • getCloudlets

      public List<CloudletRegistry> getCloudlets()
      Gets the list of Cloudlet's owned by this customer.
      Returns:
    • setCloudlets

      public void setCloudlets​(List<CloudletRegistry> cloudlets)
      Sets the list of Cloudlet's owned by this customer.
      Parameters:
      cloudlets - the customer's cloudlets list to set.
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object
    • getAmount

      public Integer getAmount()
      Returns:
      the amount
    • setAmount

      public void setAmount​(Integer amount)
      Parameters:
      amount - the amount to set