|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.basher.BasherContext
public class BasherContext
Defines the context parameters for a performance or testing run.
| Constructor Summary | |
|---|---|
BasherContext()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
getBeanShellScriptDirectory()
Retrieves the Beanshell directory that should be used for initialization scripts. |
long |
getCooldownDuration()
Retrieves the duration (in seconds) of the cooldown run. |
String |
getExcludes()
Sets the includes expression for tasks to be included in the run defined by this context. |
ExecutionType |
getExecutionType()
|
String |
getIncludes()
Retrieves the includes expression for tasks to be included in the run defined by this context. |
int |
getInitialNumberThreads()
Retrieves the number of threads which the run should start with. |
long |
getMarkAverageInterval()
Retrieves the interval between average calculations (in seconds). |
int |
getMaxNumberThreads()
Retrieves the maximum number of threads allowed in the run. |
String |
getName()
Retrieves the name of this Basher context. |
ProfilerContext |
getProfilerContext()
|
String |
getReportDirectory()
Retrieves the report directory to be used for the running. If not set, this defaults to 'target/basher-reports'. |
long |
getRunDuration()
Retrieves the duration (in seconds) of the run. |
String |
getRunIdentifier()
Retrieves the run identifier to use. |
long |
getSetupDuration()
Retrieves the duration (in seconds) of the setup run. |
long |
getStartCollectionFrom()
Retrieves the time (in seconds) when statistics collection should begin. |
long |
getStopCollectionAfter()
Retrieves the time (in seconds) when statistics collection should stop. |
int |
getTaskMaxDelay()
Retrieves the maximum delay between running tasks. |
int |
getTaskMinDelay()
Retrieves the minimum delay between running tasks. |
long |
getTeardownDuration()
Sets the duration (in seconds) of the tear-down run. |
int |
getThreadIncrementCount()
Sets the number of threads should be added for each threadIncrementInterval allowed in the run. If not set, this defaults to 0 (don't add any) |
int |
getThreadIncrementInterval()
Retrieves the interval (in seconds) between each attempt at adding more threads. |
long |
getWarmupDuration()
Retrieves the duration (in seconds) of the warm-up run. |
boolean |
isManuallyControlled()
Flag indicating whether or not the run is controlled by the user, through the APIs or BeanShell. |
void |
setBeanShellScriptDirectory(String beanShellScriptDirectory)
Sets the Beanshell directory that should be used for initialization scripts. |
void |
setCooldownDuration(long cooldownDuration)
Sets the duration (in seconds) of the cooldown run. |
void |
setExcludes(String excludes)
Sets the includes expression for tasks to be included in the run defined by this context. |
void |
setExecutionType(ExecutionType executionType)
|
void |
setIncludes(String includes)
Sets the includes expression for tasks to be included in the run defined by this context. |
void |
setInitialNumberThreads(int initialNumberThreads)
Sets the number of threads which the run should start with. If not set, this defaults to 10 |
void |
setManuallyControlled(boolean manuallyControlled)
Flag indicating whether or not the run is controlled by the user. |
void |
setMarkAverageInterval(long markAverageInterval)
Sets the interval between average calculations (in seconds). |
void |
setMaxNumberThreads(int maxNumberThreads)
Sets the maximum number of threads allowed in the run. |
void |
setName(String name)
Sets the name of this Basher context. |
void |
setProfilerContext(ProfilerContext profilerContext)
|
void |
setReportDirectory(String reportDirectory)
Sets the report directory to be used for the running. If not set, this defaults to 'target/basher-reports'. |
void |
setRunDuration(long runDuration)
Sets the duration (in seconds) of the run. |
void |
setRunIdentifier(String runIdentifier)
Specifies the run identifier to use. |
void |
setSetupDuration(long setupDuration)
Sets the duration (in seconds) of the setup run. |
void |
setStartCollectionFrom(long startCollectionFrom)
Sets the time (in seconds) when statistics collection should begin. |
void |
setStopCollectionAfter(long stopCollectionAfter)
Sets the time (in seconds) when statistics collection should stop. |
void |
setTaskMaxDelay(int taskMaxDelay)
Sets the maximum delay between running tasks. |
void |
setTaskMinDelay(int taskMinDelay)
Sets the minimum delay between running tasks. |
void |
setTeardownDuration(long teardownDuration)
Sets the duration (in seconds) of the tear-down run. |
void |
setThreadIncrementCount(int threadIncrementCount)
Retrieves the number of threads should be added for each threadIncrementInterval allowed in the run. If not set, this defaults to 0 (don't add any) |
void |
setThreadIncrementInterval(int threadIncrementInterval)
Sets the interval (in seconds) between each attempt at adding more threads. |
void |
setWarmupDuration(long warmupDuration)
Sets the duration (in seconds) of the warm-up run. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasherContext()
| Method Detail |
|---|
public String getIncludes()
public void setIncludes(String includes)
includes - The include expressionpublic String getExcludes()
public void setExcludes(String excludes)
public long getWarmupDuration()
public void setWarmupDuration(long warmupDuration)
warmupDuration - The duration (in seconds) of the setup runpublic long getTeardownDuration()
public void setTeardownDuration(long teardownDuration)
teardownDuration - The duration (in seconds) of the setup runpublic String getBeanShellScriptDirectory()
public void setBeanShellScriptDirectory(String beanShellScriptDirectory)
beanShellScriptDirectory - The BeanShell directory to usepublic long getStartCollectionFrom()
public void setStartCollectionFrom(long startCollectionFrom)
startCollectionFrom - The time, relative from the start of the run, when collection should startpublic long getStopCollectionAfter()
public void setStopCollectionAfter(long stopCollectionAfter)
stopCollectionAfter - The time, relative from the start of the run, when collection should stoppublic int getInitialNumberThreads()
public void setInitialNumberThreads(int initialNumberThreads)
initialNumberThreads - The number of threads the run should start withpublic int getMaxNumberThreads()
setThreadIncrementCount(int) and
setThreadIncrementInterval(int).
public void setMaxNumberThreads(int maxNumberThreads)
setThreadIncrementCount(int) and
setThreadIncrementInterval(int).
maxNumberThreads - The number of threads the run should start withpublic int getThreadIncrementCount()
public void setThreadIncrementCount(int threadIncrementCount)
threadIncrementCount - The number of threads to addpublic int getThreadIncrementInterval()
public void setThreadIncrementInterval(int threadIncrementInterval)
threadIncrementInterval - The interval between adding threads (in seconds)public int getTaskMinDelay()
public void setTaskMinDelay(int taskMinDelay)
taskMinDelay - The maximum task delay (in milliseconds)public int getTaskMaxDelay()
public void setTaskMaxDelay(int taskMaxDelay)
taskMaxDelay - The maximum task delay (in milliseconds)public long getMarkAverageInterval()
public void setMarkAverageInterval(long markAverageInterval)
markAverageInterval - The time between average calculations (in seconds)public String getName()
public void setName(String name)
name - The name of the Basher contextpublic String getReportDirectory()
public void setReportDirectory(String reportDirectory)
reportDirectory - The report directorypublic long getSetupDuration()
public void setSetupDuration(long setupDuration)
setupDuration - The duration (in seconds) of the setup runpublic long getRunDuration()
public void setRunDuration(long runDuration)
runDuration - The duration (in seconds) of the runpublic long getCooldownDuration()
public void setCooldownDuration(long cooldownDuration)
cooldownDuration - The duration (in seconds) of the setup runpublic ExecutionType getExecutionType()
public void setExecutionType(ExecutionType executionType)
executionType - public String getRunIdentifier()
public void setRunIdentifier(String runIdentifier)
runIdentifier - The run identifierpublic boolean isManuallyControlled()
public void setManuallyControlled(boolean manuallyControlled)
manuallyControlled - True if the user should control the runs, otherwise falsepublic ProfilerContext getProfilerContext()
public void setProfilerContext(ProfilerContext profilerContext)
profilerContext - public boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||