java.lang.Object
raining.client.SocketBlaster
- public class SocketBlaster
- extends java.lang.Object
A Load Tester program that generates a high number of http requests
to send to one URL.
FIXME: Not working with proxies any longer.
Command line for:
- file to take URLs from, usually these would be different URLs on
one server
- use proxy, server, port, authstring
FOr Testing or loading (this should go into another extends)
- how many concurrent connections (A)
- how long to keep hitting URL
- any pause between A's
- max hits
We shd be able to inherit cl parsing and add/override our options ?
Many things will have to be done ONCE not each time, since URLs are
the same - URL parse, GET, base64 etc.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxhits
static int maxhits
interval
static long interval
maxtime
static long maxtime
idealconnections
static int idealconnections
starttime
long starttime
urlarray
java.lang.String[] urlarray
timer
java.util.Timer timer
useProxy
static boolean useProxy
- we still need to know this, since we have to send the host and
port for non-proxy programes.
SocketBlaster
public SocketBlaster()
- Empty Constructor
main
public static void main(java.lang.String[] args)
setMaxTime
public void setMaxTime(long maxtime)
setMaxHits
public void setMaxHits(int maxhits)
setURLArray
public void setURLArray(java.lang.String[] urlarray)
start
public void start()
throws java.io.IOException,
java.lang.Exception
- start the socket blaster.