|
||||||||||
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.EC2ReservedPriceWatch
public class EC2ReservedPriceWatch
This class provides access to the EC2 reserved prices that are inputted through CSV files to the broker
Field Summary | |
---|---|
static java.lang.String |
RESERVED_INPUT
Location of the input files containing the reserved prices. |
Constructor Summary | |
---|---|
EC2ReservedPriceWatch()
Constructor for EC2ReservedPriceWatch |
|
EC2ReservedPriceWatch(java.lang.String inputLocation)
Constructor for EC2ReservedPriceWatch |
Method Summary | |
---|---|
ReservedPrice |
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 RESERVED_INPUT
Constructor Detail |
---|
public EC2ReservedPriceWatch()
public EC2ReservedPriceWatch(java.lang.String inputLocation)
inputLocation
- the location of the input files containing the reserved
prices.Method Detail |
---|
public ReservedPrice 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 |