|
||||||||||
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.PricingManager
public class PricingManager
This class provides static access to the on-demand, reserved and spot prices that are provided to the broker using input files. This class redirects calls to the appropriate PriceWatch implementations.
Constructor Summary | |
---|---|
PricingManager()
|
Method Summary | |
---|---|
static OnDemandPrice |
getOnDemandPrice(InstanceSpecification inst)
Get the on-demand price for a given instance specification |
static ReservedPrice |
getReservedPrice(InstanceSpecification inst)
Get the reserved price for a given instance specification |
static SpotPrice |
getSpotPrice(InstanceSpecification inst,
java.util.Date timestamp)
Get the spot price for a given instance specification at a given moment in time. |
static org.apache.commons.math.stat.descriptive.DescriptiveStatistics |
getStatisticsSpotPrice(InstanceSpecification inst,
java.util.Date start,
java.util.Date end)
Getter for the spot price history statistics within the given time frame for the given instance specification |
static SpotPrice |
getTippingPointSpotPrice(InstanceSpecification inst,
java.util.Date start,
java.util.Date end,
int numberToSkip)
Getter for the tipping spot bid price such that all task hours can be run on the cheapest spot price hours, the number of hours that can be skipped is given as well as the instance specification and time frame to determine the spot price tipping point for. |
static void |
setup()
Initialize/setup the price watches |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PricingManager()
Method Detail |
---|
public static void setup()
public static OnDemandPrice getOnDemandPrice(InstanceSpecification inst) throws InstanceNotAvailableException
inst
- the instance specification to get the on-demand price for
InstanceNotAvailableException
public static ReservedPrice getReservedPrice(InstanceSpecification inst) throws InstanceNotAvailableException
inst
- the instance specification to get the reserved price for
InstanceNotAvailableException
public static SpotPrice getSpotPrice(InstanceSpecification inst, java.util.Date timestamp) throws InstanceNotAvailableException
inst
- the instance specification to get the spot price for
InstanceNotAvailableException
public static org.apache.commons.math.stat.descriptive.DescriptiveStatistics getStatisticsSpotPrice(InstanceSpecification inst, java.util.Date start, java.util.Date end) throws InstanceNotAvailableException
inst
- the instance specification to get the spot price statistics
forstart
- the start date of the time frame to get the spot price
statistics forend
- the end date of the time frame to get the spot price
statistics for
InstanceNotAvailableException
public static SpotPrice getTippingPointSpotPrice(InstanceSpecification inst, java.util.Date start, java.util.Date end, int numberToSkip) throws InstanceNotAvailableException
inst
- the instance specification to get the bid spot price forstart
- the start date of the time interval to get the bid spot price
forend
- the end date of the time interval to get the bid spot price
forindex
- the number of hours that can be skipped, the spot instance
does not need to be in use
InstanceNotAvailableException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |