public class ClosedWorkload extends Object implements IWorkloadDriver
Constructor and Description |
---|
ClosedWorkload(IUserFactory userFactory,
int population)
Constructor of the closed workload driver
|
Modifier and Type | Method and Description |
---|---|
IUserFactory |
getUserFactory() |
void |
run()
Starts the workload
|
void |
setPopulation(int newPopulation) |
public ClosedWorkload(IUserFactory userFactory, int population)
userFactory
- Factory used to create the userspopulation
- Number of users in the systempublic void run()
IWorkloadDriver
run
in interface IWorkloadDriver
public IUserFactory getUserFactory()
getUserFactory
in interface IWorkloadDriver
public void setPopulation(int newPopulation)