Class ClosedWorkload
java.lang.Object
de.uka.ipd.sdq.simucomframework.usage.ClosedWorkload
- All Implemented Interfaces:
ICancellableWorkloadDriver
,IWorkloadDriver
Class used for executing a closed workload. The class creates as many users as specified and
executes them simultaniously
-
Constructor Summary
ConstructorDescriptionClosedWorkload
(IClosedWorkloadUserFactory userFactory, int population) Constructor of the closed workload driver -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Cancels the workload driver and prevents it from scheduling new demand.void
run()
Starts the workloadvoid
setPopulation
(int newPopulation) void
setThinkTime
(String newThinkTime)
-
Constructor Details
-
ClosedWorkload
Constructor of the closed workload driver- Parameters:
userFactory
- Factory used to create the userspopulation
- Number of users in the system
-
-
Method Details
-
run
public void run()Description copied from interface:IWorkloadDriver
Starts the workload- Specified by:
run
in interfaceIWorkloadDriver
-
cancel
public void cancel()Description copied from interface:ICancellableWorkloadDriver
Cancels the workload driver and prevents it from scheduling new demand.- Specified by:
cancel
in interfaceICancellableWorkloadDriver
-
getUserFactory
- Specified by:
getUserFactory
in interfaceIWorkloadDriver
-
setPopulation
public void setPopulation(int newPopulation) -
setThinkTime
-