be.ac.ua.broker.input.tasks.generation.wm2
Class WorkloadGenerator

java.lang.Object
  extended by be.ac.ua.broker.input.tasks.generation.wm2.WorkloadGenerator

public class WorkloadGenerator
extends java.lang.Object

This class is used to generate a workload distribution for a workload model two task, it provides a load for every supported instance type according to the ratios provided by the number of EC2 compute units associated with the instance type.

Author:
Vermeersch Kurt

Constructor Summary
WorkloadGenerator(java.lang.String inputComputeInstanceCSV)
          Constructor for WorkloadGenerator
 
Method Summary
 void createWorkload(java.lang.String filePath, int lengthInHours)
          Create a random workload with a wave distribution for all the possible instance types for a task with a given length.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkloadGenerator

public WorkloadGenerator(java.lang.String inputComputeInstanceCSV)
Constructor for WorkloadGenerator

Parameters:
inputComputeInstanceCSV - the file providing the ECU information for the supported instance types
Method Detail

createWorkload

public void createWorkload(java.lang.String filePath,
                           int lengthInHours)
Create a random workload with a wave distribution for all the possible instance types for a task with a given length.

Parameters:
filePath - location of the file to store the generated workload in
lengthInHours - the length of the task to generated the workload for