public class ClosedWorkload extends Object implements ICancellableWorkloadDriver
Constructor and Description |
---|
ClosedWorkload(IUserFactory userFactory,
int population)
Constructor of the closed workload driver
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels the workload driver and prevents it from scheduling new demand.
|
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 void cancel()
ICancellableWorkloadDriver
cancel
in interface ICancellableWorkloadDriver
public IUserFactory getUserFactory()
getUserFactory
in interface IWorkloadDriver
public void setPopulation(int newPopulation)