org.logicalcobwebs.proxool
Class PerformanceTest
java.lang.Object
TestCase
org.logicalcobwebs.proxool.AbstractProxoolTest
org.logicalcobwebs.proxool.PerformanceTest
- All Implemented Interfaces:
- StatisticsListenerIF
public class PerformanceTest
- extends AbstractProxoolTest
- implements StatisticsListenerIF
Tests how fast Proxool is compared to the "perfect" pool, SimpoolAdapter
.
- Since:
- Proxool 0.5
- Version:
- $Revision: 1.17 $, $Date: 2003/11/04 13:54:02 $
- Author:
- Bill Horsman (bill@logicalcobwebs.co.uk), $Author: billhorsman $ (current maintainer)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final Log LOG
millisecondsFormat
private static java.text.DecimalFormat millisecondsFormat
waitingThead
private java.lang.Thread waitingThead
statistics
private StatisticsIF statistics
PERIOD
private static final int PERIOD
- See Also:
- Constant Field Values
COUNT
private static final int COUNT
- See Also:
- Constant Field Values
servedCount
private long servedCount
PerformanceTest
public PerformanceTest(java.lang.String s)
testPerformance
public void testPerformance()
throws ProxoolException,
java.lang.InterruptedException
- Test how many connections we can serve if we go as fast as we can!
- Throws:
ProxoolException
- if anything goes wrong
java.lang.InterruptedException
doWait
private void doWait()
statistics
public void statistics(java.lang.String alias,
StatisticsIF statistics)
- Description copied from interface:
StatisticsListenerIF
- A new set of statistics have just been produced
- Specified by:
statistics
in interface StatisticsListenerIF
- Parameters:
alias
- identifies the poolstatistics
- new statistics
testSnapshotImpact
public void testSnapshotImpact()
throws ProxoolException
- Throws:
ProxoolException