|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.cybernode.ServiceCostCalculator
public class ServiceCostCalculator
Used to calculate resource costs for a service.
| Constructor Summary | |
|---|---|
ServiceCostCalculator()
|
|
| Method Summary | |
|---|---|
ResourceCost[] |
calculateCosts(long duration)
Calculate ResourceCost instances for cpu, memory, matched platform capabilities and software downloads |
void |
setComputeResource(ComputeResource computeResource)
Set the ComputeResource |
void |
setDownloadRecords(DownloadRecord[] downloadRecords)
Set DownloadRecord instances |
void |
setServiceBeanContext(ServiceBeanContext context)
Set the ServiceBeanContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceCostCalculator()
| Method Detail |
|---|
public void setComputeResource(ComputeResource computeResource)
computeResource - The ComputeResource object, used to access
resource cost producerspublic void setServiceBeanContext(ServiceBeanContext context)
context - The ServiceBeanContext. This is used to assist
in creating ResourceCost objects for any matched platform cCapability
declarations.public void setDownloadRecords(DownloadRecord[] downloadRecords)
downloadRecords - An array of DownloadRecord instances,
documenting that software bundles have been installed onto the compute
resource. Each DownloadRecord will be used to compute a
ResourceCost for disk space use.public ResourceCost[] calculateCosts(long duration)
duration - The time between cost calculations
MeasurableCapability has recorded
over the time period provided.
PlatformCapability
class a ResourceCost is added.
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||