Package cloudreports.models
Class CustomerRegistry
java.lang.Object
cloudreports.models.CustomerRegistry
- All Implemented Interfaces:
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:
-
Constructor Summary
ConstructorsConstructorDescriptionCustomerRegistry(String name) Creates a new customer registry with the given name. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the list ofCloudlet's owned by this customer.longgetId()Gets the customer's id.getName()Gets the customer's name.getVms()Gets the list ofVms owned by this customer.inthashCode()voidvoidsetCloudlets(List<CloudletRegistry> cloudlets) Sets the list ofCloudlet's owned by this customer.voidsetId(long id) Sets the customer's id.voidSets the customer's name.voidsetVms(List<VmRegistry> vms) Sets the list ofVms owned by this customer.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 ofVms owned by this customer.- Returns:
-
setVms
Sets the list ofVms 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
-