Package com.jalios.io
Class HttpClientThread
java.lang.Object
java.lang.Thread
com.jalios.io.HttpClientThread
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HttpClientprotected static intprotected static final Stringprotected static Object[]protected static final intprotected static intprotected static final Stringprotected static long[]protected static intprotected static longprotected static StringFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidcomputeTime(long time) The Synchronized method that compute overall timestatic voiddump()static voidThe Main Methodvoidrun()The Run method that call a requestMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
REQUEST
- See Also:
-
IN
- See Also:
-
REQCOUNT
protected static final int REQCOUNT- See Also:
-
url
-
cycles
protected static int cycles -
timeMax
protected static long timeMax -
reqCount
-
reqCountCpt
protected static int reqCountCpt -
timeCount
protected static long[] timeCount -
timeCountCpt
protected static int timeCountCpt -
client
-
-
Constructor Details
-
HttpClientThread
-
-
Method Details
-
run
public void run()The Run method that call a request -
computeTime
protected static void computeTime(long time) The Synchronized method that compute overall time- Parameters:
time- the time to compute
-
dump
public static void dump() -
main
The Main Method- Parameters:
args- the arguments (URL cycles clients)
-