Package cloudreports.models
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 Summary
Constructors Constructor Description CustomerRegistry()
CustomerRegistry(String name)
Creates a new customer registry with the given name. -
Method Summary
Modifier and Type Method Description boolean
equals(Object customer)
Integer
getAmount()
List<CloudletRegistry>
getCloudlets()
Gets the list ofCloudlet
's owned by this customer.long
getId()
Gets the customer's id.String
getName()
Gets the customer's name.List<VmRegistry>
getVms()
Gets the list ofVm
s owned by this customer.int
hashCode()
void
setAmount(Integer amount)
void
setCloudlets(List<CloudletRegistry> cloudlets)
Sets the list ofCloudlet
's owned by this customer.void
setId(long id)
Sets the customer's id.void
setName(String name)
Sets the customer's name.void
setVms(List<VmRegistry> vms)
Sets the list ofVm
s owned by this customer.String
toString()
-
Constructor Details
-
CustomerRegistry
public CustomerRegistry() -
CustomerRegistry
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
Gets the customer's name.- Returns:
- the customer's name.
-
setName
Sets the customer's name.- Parameters:
name
- the customer's name.
-
getVms
Gets the list ofVm
s owned by this customer.- Returns:
-
setVms
Sets the list ofVm
s owned by this customer.- Parameters:
vms
- the customer's virtual machines list to set.
-
getCloudlets
Gets the list ofCloudlet
's owned by this customer.- Returns:
-
setCloudlets
Sets the list ofCloudlet
's owned by this customer.- Parameters:
cloudlets
- the customer's cloudlets list to set.
-
equals
-
hashCode
public int hashCode() -
toString
-
getAmount
- Returns:
- the amount
-
setAmount
- Parameters:
amount
- the amount to set
-