|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
de.fzj.unicore.wsrflite.xfire.LocalTestCase
de.fzj.unicore.wsrflite.xfire.JettyTestCase
de.fzj.unicore.wsrflite.xfire.AbstractLoadTester
public abstract class AbstractLoadTester
does simple load testing, storing client-side response times and turnaround times you can subclass this and override the getTask() method
| Field Summary | |
|---|---|
static int |
calls_per_task
|
static boolean |
haveInit
|
static int |
max_num_client_threads
|
static int |
requests_per_client
|
protected static int |
running
|
protected static Writer |
statsWriter
|
| Fields inherited from class de.fzj.unicore.wsrflite.xfire.JettyTestCase |
|---|
factory, server |
| Fields inherited from class de.fzj.unicore.wsrflite.xfire.LocalTestCase |
|---|
xfire |
| Constructor Summary | |
|---|---|
AbstractLoadTester()
|
|
| Method Summary | |
|---|---|
protected abstract Runnable |
getTask()
a single task to be run. |
protected Writer |
makeOutputWriter()
|
protected Object |
makeProxy(Class iFaceclass,
String serviceName)
|
protected static void |
printStats(String s)
|
protected Runnable |
runOneClient()
This will be run by many client threads |
protected void |
runTimed(String msg,
Runnable r)
|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
test()
|
| Methods inherited from class de.fzj.unicore.wsrflite.xfire.JettyTestCase |
|---|
createServer, getBaseurl, getClientSideSecurityProperties, getPort, getServerSideSecurityProperties, makeSoapEnvelope |
| Methods inherited from class de.fzj.unicore.wsrflite.xfire.LocalTestCase |
|---|
addServices, makeProxy, makeSoapEnvFromReply, makeXmlObject |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int max_num_client_threads
public static int requests_per_client
public static int calls_per_task
protected static Writer statsWriter
public static boolean haveInit
protected static int running
| Constructor Detail |
|---|
public AbstractLoadTester()
| Method Detail |
|---|
protected void setUp()
throws Exception
setUp in class JettyTestCaseException
protected Writer makeOutputWriter()
throws IOException
IOException
protected void tearDown()
throws Exception
tearDown in class JettyTestCaseExceptionprotected abstract Runnable getTask()
protected Runnable runOneClient()
protected void runTimed(String msg,
Runnable r)
throws Exception
Exception
protected static void printStats(String s)
throws Exception
Exception
protected Object makeProxy(Class iFaceclass,
String serviceName)
throws Exception
Exception
public void test()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||