|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ua.broker.evaluation.RandomWorkloadGenerator
public class RandomWorkloadGenerator
Class used to generate semi-random tasks that make up the workload for a benchmark run, semi in the sense that certain variables can be set and certain properties are not random but take a certain value with a given probability.
Constructor Summary | |
---|---|
RandomWorkloadGenerator(java.lang.String fOLDERWM1,
java.lang.String fOLDERWM2,
java.util.Date start,
java.lang.Double pROBABILITYSPOTALLOWEDTASK,
java.lang.Double pROBABILITYLATEDEADLINETASK)
Constructor for RandomWorkloadGenerator |
Method Summary | |
---|---|
java.lang.String[] |
addRandomWM1Task(java.lang.String reg,
java.lang.String inst,
java.lang.String os)
Add a randomly generated workload model one task to the existing workload. |
java.lang.String[] |
addRandomWM2Task(java.lang.String reg,
java.lang.String inst,
java.lang.String os)
Add a randomly generated workload model two task to the existing workload. |
java.lang.String[] |
modifyCurrentWM1Task(java.lang.String reg,
java.lang.String inst,
java.lang.String os)
Modify the randomly generated workload model one task corresponding to the current task number, it will get a new deadline and task length assigned. |
java.lang.String[] |
modifyCurrentWM2Task(java.lang.String reg,
java.lang.String inst,
java.lang.String os)
Modify the randomly generated workload model two task corresponding to the current task number, it will get a new deadline, task length, and load distribution assigned. |
void |
reset()
Reset the generator, start renumbering the generated tasks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomWorkloadGenerator(java.lang.String fOLDERWM1, java.lang.String fOLDERWM2, java.util.Date start, java.lang.Double pROBABILITYSPOTALLOWEDTASK, java.lang.Double pROBABILITYLATEDEADLINETASK)
fOLDERWM1
- the location for the workload model one tasksfOLDERWM2
- the location for the workload model two tasksstart
- the start date of the one-year period in which the generated
tasks will be scheduledpROBABILITYSPOTALLOWEDTASK
- probability the generated task is allowed to be run on spot
instancespROBABILITYLATEDEADLINETASK
- probability the generated task has a deadline falling in the
last week of the one-year scheduling period.Method Detail |
---|
public void reset()
public java.lang.String[] addRandomWM1Task(java.lang.String reg, java.lang.String inst, java.lang.String os)
reg
- the geographical region to generate a task forinst
- the instance type to generate a task foros
- the operating system to generate a task for
public java.lang.String[] addRandomWM2Task(java.lang.String reg, java.lang.String inst, java.lang.String os)
reg
- the geographical region to generate a task forinst
- the instance type to generate a task foros
- the operating system to generate a task for
public java.lang.String[] modifyCurrentWM1Task(java.lang.String reg, java.lang.String inst, java.lang.String os)
reg
- the geographical region of the generated taskinst
- the instance type of the generated taskos
- the operating system of the generated task
public java.lang.String[] modifyCurrentWM2Task(java.lang.String reg, java.lang.String inst, java.lang.String os)
reg
- the geographical region of the generated taskinst
- the instance type of the generated taskos
- the operating system of the generated task
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |