|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.logicalcobwebs.proxool.AbstractProxoolTest
org.logicalcobwebs.proxool.PerformanceTest
Tests how fast Proxool is compared to the "perfect" pool, SimpoolAdapter
.
Nested Class Summary | |
(package private) class |
PerformanceTest.AnnoyingConnector
|
(package private) class |
PerformanceTest.DisagreeableSnapshotter
|
Field Summary | |
private static int |
COUNT
|
private static Log |
LOG
|
private static java.text.DecimalFormat |
millisecondsFormat
|
private static int |
PERIOD
|
private long |
servedCount
|
private StatisticsIF |
statistics
|
private java.lang.Thread |
waitingThead
|
Fields inherited from class org.logicalcobwebs.proxool.AbstractProxoolTest |
|
Fields inherited from class junit.framework.TestCase |
|
Constructor Summary | |
PerformanceTest(java.lang.String s)
|
Method Summary | |
private void |
doWait()
|
void |
statistics(java.lang.String alias,
StatisticsIF statistics)
A new set of statistics have just been produced |
void |
testPerformance()
Test how many connections we can serve if we go as fast as we can! |
void |
testSnapshotImpact()
|
Methods inherited from class org.logicalcobwebs.proxool.AbstractProxoolTest |
setUp, tearDown |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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 |
private static final Log LOG
private static java.text.DecimalFormat millisecondsFormat
private java.lang.Thread waitingThead
private StatisticsIF statistics
private static final int PERIOD
private static final int COUNT
private long servedCount
Constructor Detail |
public PerformanceTest(java.lang.String s)
Method Detail |
public void testPerformance() throws ProxoolException, java.lang.InterruptedException
ProxoolException
- if anything goes wrong
java.lang.InterruptedException
private void doWait()
public void statistics(java.lang.String alias, StatisticsIF statistics)
StatisticsListenerIF
statistics
in interface StatisticsListenerIF
alias
- identifies the poolstatistics
- new statisticspublic void testSnapshotImpact() throws ProxoolException
ProxoolException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |