Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

raining.client
Class SocketBlaster  view SocketBlaster download SocketBlaster.java

java.lang.Object
  extended byraining.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.


Field Summary
(package private) static int idealconnections
           
(package private) static long interval
           
(package private) static int maxhits
           
(package private) static long maxtime
           
(package private)  long starttime
           
(package private)  java.util.Timer timer
           
(package private)  java.lang.String[] urlarray
           
(package private) static boolean useProxy
          we still need to know this, since we have to send the host and port for non-proxy programes.
 
Constructor Summary
SocketBlaster()
          Empty Constructor
 
Method Summary
static void main(java.lang.String[] args)
           
 void setMaxHits(int maxhits)
           
 void setMaxTime(long maxtime)
           
 void setURLArray(java.lang.String[] urlarray)
           
 void start()
          start the socket blaster.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

SocketBlaster

public SocketBlaster()
Empty Constructor

Method Detail

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.