|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ua.broker.input.pricing.EC2OnDemandPriceWatch
public class EC2OnDemandPriceWatch
This class provides access to the EC2 on-demand prices that are inputted through CSV files to the broker
Field Summary | |
---|---|
static java.lang.String |
ONDEMAND_INPUT
Location of the input files containing the on-demand prices. |
Constructor Summary | |
---|---|
EC2OnDemandPriceWatch()
Constructor for EC2OnDemandPriceWatch |
|
EC2OnDemandPriceWatch(java.lang.String inputLocation)
Constructor for EC2OnDemandPriceWatch |
Method Summary | |
---|---|
OnDemandPrice |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String ONDEMAND_INPUT
Constructor Detail |
---|
public EC2OnDemandPriceWatch()
public EC2OnDemandPriceWatch(java.lang.String inputLocation)
inputLocation
- the location of the input files containing the on-demand
prices.Method Detail |
---|
public OnDemandPrice getPrice(InstanceSpecification inst) throws InstanceNotAvailableException
PriceWatch
getPrice
in interface PriceWatch
inst
- the instance specification to get the price for
InstanceNotAvailableException
public void update()
PriceWatch
update
in interface PriceWatch
public java.lang.String getPricingModel()
getPricingModel
in interface PriceWatch
public Price getPrice(InstanceSpecification inst, java.util.Date timestamp) throws InstanceNotAvailableException
PriceWatch
getPrice
in interface PriceWatch
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 |