|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PriceWatch
This interface represents an access point to the prices of EC2 for a particular pricing model
Method Summary | |
---|---|
Price |
getPrice(InstanceSpecification inst)
Getter for the price of the given instance using the pricing model associated with the PriceWatch implementation |
Price |
getPrice(InstanceSpecification inst,
java.util.Date timestamp)
Getter for the price of the given instance at a certain moment in time using the pricing model associated with the PriceWatch implementation |
java.lang.String |
getPricingModel()
|
void |
update()
Update the prices that are returned by the PriceWatch implementation, reread prices from CSV files for example |
Method Detail |
---|
void update()
java.lang.String getPricingModel()
Price getPrice(InstanceSpecification inst) throws InstanceNotAvailableException
inst
- the instance specification to get the price for
InstanceNotAvailableException
Price getPrice(InstanceSpecification inst, java.util.Date timestamp) throws InstanceNotAvailableException
inst
- the instance specification to get the price fortimestamp
- time to get the price for
InstanceNotAvailableException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |