Package com.jalios.io

Class HttpClientThread

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

public class HttpClientThread extends Thread
  • Field Details

    • REQUEST

      protected static final String REQUEST
      See Also:
    • IN

      protected static final String IN
      See Also:
    • REQCOUNT

      protected static final int REQCOUNT
      See Also:
    • 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 Details

    • HttpClientThread

      public HttpClientThread(String commonUrl, int commonCycles)
  • Method Details

    • 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
      Parameters:
      time - the time to compute
    • dump

      public static void dump()
    • main

      public static void main(String[] args)
      The Main Method
      Parameters:
      args - the arguments (URL cycles clients)