com.jalios.io
Class HttpClientThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.jalios.io.HttpClientThread
All Implemented Interfaces:
Runnable

public class HttpClientThread
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  HttpClient client
           
protected static int cycles
           
protected static String IN
           
protected static Object[] reqCount
           
protected static int REQCOUNT
           
protected static int reqCountCpt
           
protected static String REQUEST
           
static String REVISION
           
protected static long[] timeCount
           
protected static int timeCountCpt
           
protected static long timeMax
           
protected static String url
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
HttpClientThread(String commonUrl, int commonCycles)
           
 
Method Summary
protected static void computeTime(long time)
          The Synchronized method that compute overall time
static void dump()
           
static void main(String[] args)
          The Main Method
 void run()
          The Run method that call a request
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

REQUEST

protected static final String REQUEST
See Also:
Constant Field Values

IN

protected static final String IN
See Also:
Constant Field Values

REQCOUNT

protected static final int REQCOUNT
See Also:
Constant Field Values

url

protected static String url

cycles

protected static int cycles

timeMax

protected static long timeMax

reqCount

protected static Object[] reqCount

reqCountCpt

protected static int reqCountCpt

timeCount

protected static long[] timeCount

timeCountCpt

protected static int timeCountCpt

client

protected HttpClient client
Constructor Detail

HttpClientThread

public HttpClientThread(String commonUrl,
                        int commonCycles)
Method Detail

run

public void run()
The Run method that call a request

Specified by:
run in interface Runnable
Overrides:
run in class Thread

computeTime

protected static void computeTime(long time)
The Synchronized method that compute overall time


dump

public static void dump()

main

public static void main(String[] args)
The Main Method



Copyright © 2001-2010 Jalios SA. All Rights Reserved.