Class Stats

java.lang.Object
net.targetr.wtm3.Stats

public class Stats extends Object
Statistics for monitoring web server network activity.
Author:
Dr Michael Gardiner
  • Field Details

    • INSTANCE_ID

      public static final String INSTANCE_ID
    • CONNECTION_START_COUNT

      public static final AtomicLong CONNECTION_START_COUNT
    • CONNECTION_END_COUNT

      public static final AtomicLong CONNECTION_END_COUNT
    • REQUEST_START_COUNT

      public static final AtomicLong REQUEST_START_COUNT
    • REQUEST_END_COUNT

      public static final AtomicLong REQUEST_END_COUNT
    • GENERATOR_START_COUNT

      public static final AtomicLong GENERATOR_START_COUNT
    • GENERATOR_END_COUNT

      public static final AtomicLong GENERATOR_END_COUNT
    • RESPONSE_START_COUNT

      public static final AtomicLong RESPONSE_START_COUNT
    • RESPONSE_END_COUNT

      public static final AtomicLong RESPONSE_END_COUNT
    • WEB_SOCKET_FRAMES_OUT

      public static final AtomicLong WEB_SOCKET_FRAMES_OUT
    • WEB_SOCKET_FRAMES_IN

      public static final AtomicLong WEB_SOCKET_FRAMES_IN
    • INGRESS

      public static final AtomicLong INGRESS
    • EGRESS

      public static final AtomicLong EGRESS
  • Method Details

    • logResponseCode

      public static void logResponseCode(Integer code)
      Logs a response code for statistical purposes.
      Parameters:
      code - The response code to log.
    • getResponseCodeCounts

      public static Map<Integer,Long> getResponseCodeCounts()
      Returns a map of response codes and counts for statisitcal purposes.
      Returns:
      response codes and counts in a map.