|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ua.broker.input.tasks.generation.wm2.ComputeInstanceMapper
public class ComputeInstanceMapper
This class is used to read the mapping from Amazon EC2 supported instance type to the associated number of compute units. This number is used to create a workload load for every task hour of a workload model two task according to the ratios provided by these ECUs.
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,java.lang.Double> |
fContents
Mapping from instance type to a number of compute units associated with the instance by EC2 |
Constructor Summary | |
---|---|
ComputeInstanceMapper(java.lang.String inputComputeInstanceCSV)
Constructor for ComputeInstanceMapper |
Method Summary | |
---|---|
java.lang.Double |
getNumberOfComputeUnits(java.lang.String instance)
Getter for the number of compute units associated by EC2 with a given instance type |
void |
parse()
Parse the given CSV file and store its contents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<java.lang.String,java.lang.Double> fContents
Constructor Detail |
---|
public ComputeInstanceMapper(java.lang.String inputComputeInstanceCSV)
inputComputeInstanceCSV
- the location of the CSV file describing the number of EC2
compute units associated with every instance type supportedMethod Detail |
---|
public void parse()
public java.lang.Double getNumberOfComputeUnits(java.lang.String instance) throws InstanceNotAvailableException, InvalidInputException
instance
- the instance type to get the associated number of compute
units for
InstanceNotAvailableException
InvalidInputException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |