public class LoadGeneratorConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
color |
protected int |
numberOfIterations
controls how often the worker runnables are executed
|
protected int |
numOfThreads
the number of threads to use when generating load
|
protected Runnable[] |
setupTasks |
protected Runnable[] |
workerTasks |
Constructor and Description |
---|
LoadGeneratorConfiguration() |
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfIterations() |
int |
getNumOfThreads() |
Runnable[] |
getSetupTasks() |
Runnable[] |
getWorkerTasks() |
boolean |
isColor() |
void |
setColor(boolean color) |
void |
setNumberOfIterations(int numberOfIterations) |
void |
setNumOfThreads(int numOfThreads) |
void |
setSetupTasks(Runnable[] setupRunnables) |
void |
setWorkerTasks(Runnable[] workerRunnables) |
protected int numOfThreads
protected int numberOfIterations
protected Runnable[] setupTasks
protected Runnable[] workerTasks
protected boolean color
public int getNumOfThreads()
public Runnable[] getSetupTasks()
public Runnable[] getWorkerTasks()
public void setNumOfThreads(int numOfThreads)
public void setSetupTasks(Runnable[] setupRunnables)
public void setWorkerTasks(Runnable[] workerRunnables)
public int getNumberOfIterations()
public void setNumberOfIterations(int numberOfIterations)
public boolean isColor()
public void setColor(boolean color)
Copyright © 2017. All rights reserved.