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
ConstructorDescriptionCustomerRegistry
(String name) Creates a new customer registry with the given name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the list ofCloudlet
's owned by this customer.long
getId()
Gets the customer's id.getName()
Gets the customer's name.getVms()
Gets the list ofVm
s owned by this customer.int
hashCode()
void
void
setCloudlets
(List<CloudletRegistry> cloudlets) Sets the list ofCloudlet
's owned by this customer.void
setId
(long id) Sets the customer's id.void
Sets the customer's name.void
setVms
(List<VmRegistry> vms) Sets the list ofVm
s 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 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
-