Package overit.geocall.ux.util
Class Benchmark
java.lang.Object
java.lang.Thread
overit.geocall.ux.util.Benchmark
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static int[][]protected static long[][]protected intprotected static ArrayListprotected static intFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecuteProgramEntry(org.apache.http.impl.client.CloseableHttpClient hc, Benchmark.ProgramEntry pe) protected org.apache.http.impl.client.CloseableHttpClientgetCloseableHttpClient(org.apache.http.client.config.RequestConfig requestConfig) protected static intstatic voidprotected static voidout()protected static voidregisterTime(int thread, int url, long time) voidrun()Methods 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
-
_clicks
protected static int[][] _clicks -
_download
protected static long[][] _download -
_program
-
_urls
protected static int _urls -
_id
protected int _id
-
-
Constructor Details
-
Benchmark
public Benchmark(int id)
-
-
Method Details
-
loadProgram
- Throws:
Exception
-
executeProgramEntry
protected void executeProgramEntry(org.apache.http.impl.client.CloseableHttpClient hc, Benchmark.ProgramEntry pe) throws IOException - Throws:
IOException
-
run
public void run() -
getCloseableHttpClient
protected org.apache.http.impl.client.CloseableHttpClient getCloseableHttpClient(org.apache.http.client.config.RequestConfig requestConfig) -
registerTime
protected static void registerTime(int thread, int url, long time) -
out
protected static void out() -
main
- Throws:
Exception
-