|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jminor.common.model.LoadTestModel.AbstractUsageScenario<T>
public abstract static class LoadTestModel.AbstractUsageScenario<T>
An abstract usage scenario.
Constructor Summary | |
---|---|
LoadTestModel.AbstractUsageScenario()
Instantiates a new UsageScenario using the simple class name as scenario name |
|
LoadTestModel.AbstractUsageScenario(String name)
Instantiates a new UsageScenario with the given name |
Method Summary | |
---|---|
protected void |
cleanup(Object application)
Called after this scenario has been run, override to cleanup the application after each run |
void |
clearExceptions()
Clears the exceptions that have been collected so far |
boolean |
equals(Object obj)
|
int |
getDefaultWeight()
|
List<LoadTest.ScenarioException> |
getExceptions()
|
String |
getName()
|
int |
getSuccessfulRunCount()
|
int |
getTotalRunCount()
|
int |
getUnsuccessfulRunCount()
|
int |
hashCode()
|
protected abstract void |
performScenario(T application)
Runs a set of actions on the given application. |
protected void |
prepare(Object application)
Called before this scenario is run, override to prepare the application for each run |
void |
resetRunCount()
Resets the run counters |
void |
run(T application)
Runs this scenario with the given application |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LoadTestModel.AbstractUsageScenario()
public LoadTestModel.AbstractUsageScenario(String name)
name
- the scenario nameMethod Detail |
---|
public final String getName()
getName
in interface LoadTest.UsageScenario<T>
public final int getSuccessfulRunCount()
getSuccessfulRunCount
in interface LoadTest.UsageScenario<T>
public final int getUnsuccessfulRunCount()
getUnsuccessfulRunCount
in interface LoadTest.UsageScenario<T>
public final int getTotalRunCount()
getTotalRunCount
in interface LoadTest.UsageScenario<T>
public List<LoadTest.ScenarioException> getExceptions()
getExceptions
in interface LoadTest.UsageScenario<T>
public final void resetRunCount()
resetRunCount
in interface LoadTest.UsageScenario<T>
public void clearExceptions()
clearExceptions
in interface LoadTest.UsageScenario<T>
public final String toString()
toString
in class Object
public final void run(T application) throws LoadTest.ScenarioException
run
in interface LoadTest.UsageScenario<T>
application
- the application to use
LoadTest.ScenarioException
- in case of an exceptionpublic final int hashCode()
hashCode
in class Object
public final boolean equals(Object obj)
equals
in class Object
public int getDefaultWeight()
getDefaultWeight
in interface LoadTest.UsageScenario<T>
protected abstract void performScenario(T application) throws LoadTest.ScenarioException
application
- the application
ScenarioException
- in case of an exception
LoadTest.ScenarioException
protected void prepare(Object application)
application
- the applicationprotected void cleanup(Object application)
application
- the application
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |